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-*. 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.