Install Mysql and Phpmyadmin use Terminal
Installing MySql
sudo apt-get install mysql-serverType your ubuntu password if needed.
Do you want to continue [y/n]? y
Type y and hit enter to confirm MySql installation.
During the installation you will be prompted for a password.Choose something secure and type the password and hit enter .
Repeat the password and press enter.
Installing phpMyadmin
phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web.
Open Terminall. And type the below code in terminal and hit enter.
sudo apt-get install phpmyadmin
Type your ubuntu password if needed.
Type y and hit enter to confirm phpMyadmin installation.
During the installation you will be prompted for a webserver configuration.
Select
apache2
(already selected)
press enter.
Now you will be promped for phpmyadmin configuration
Select
No
and press enter.
Type below command in terminal
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d
restart your apache server using
sudo /etc/init.d/apache2 restart
Open your browser and type
http://localhost/phpmyadmin/
in the address bar and press enter.
Type your mysql root username and password to login.
You’re now ready to start building your local website. just put all of your files into
/var/www
No comments:
Post a Comment