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:
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 to: http://www.mysql.com/downloads/mysql/ from this URL
Go to the web site, select MySQL Community Server, and click to enter the download page. You 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. No password is set for installation by default. 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.