The MySQL command under Fedora is described in detail first. I am also just learning MySQL. If something is wrong, please correct me and hope that I can help you with some experience. The following describes my installation: www.2cto.com 1. My operating system is Fedora release 17. This does not involve how to install linux. If you need it, you can send a message to me on the website. In fact, the installation is quite simple. 2. MySQL I installed is 5.5.28 of the latest version. You can download from this URL: http://www.mysql.com/downloads/mysql/ to enter the URL, select MySQL Community Server, click to enter the download page, will see:
Select the Linux Generic option. Download the following seven files:
3. After the preparation is complete, install linux: first create a folder in linux: mkdir/usr/local/src/mysql (Convention ). Then, put the seven files in this folder. Run: rpm-ivh -- force/usr/local/src/mysql/MySQL-*. rpm. Wait until the installation is complete and restart the computer. 4. After the computer restarts, type mysql in the command line. If 'mysql> 'is displayed, the installation is successful. 5. by default, no password is set for installation. Next we can set a password for the root user by using the command: set password = password ('your password') 6. when you exit mysql and want to log on again, enter the full command: mysql-h localhost-u root-p. Then, enter the password.