Tuesday, April 14, 2015

MySQL server installation

1. Install the MySQL server:

sudo apt-get install mysql-server

2. Choose the password for "root" user:



3. Also, install this:

sudo apt-get install php5-mysql


4. Type this:

mysql -u root -p



5. List the databases:

show databases;

6. Exit the MySQL monitor

quit

7. To check the version of MySQL, type this command:

mysql -V

or

mysql --version


1 comment: