[Linux] Fedora20MySQL installation and configuration

Source: Internet
Author: User
In 1MySQL installation and configuration, if yuminstallmysql is directly used in fedora, mariadb is a branch of mysql, which is not much different from mysql. But there is a difference. Maybe it's a branch after all. Mariadb56 is equivalent to mysql version 50 and 51.

MySQL installation and configuration

In fedora, mariadb is a branch of mysql directly installed using yum install mysql, which is not much different from mysql. But there is a difference. Maybe it's a branch after all. Mariadb5.6 feels like mysql 5.0 and 5.1, which I feel from the timestamp. In MySQL, a table does not seem to be able to use two timestamp sub-segments at the same time, or it may be too difficult for me. the same database is no problem in MySQL anyway, if the version is earlier than 5.5, the error message indicating that the timestamp cannot be reused is returned.

If you use yum install mysql, it will be easier to start using systemctl start mysqld. service after installation. The differences between linux versions and linux versions are caused by different directories.

It's far away. To put it bluntly, I used the rpm Package to install mysql for the above reason.

Just install MySQL-client-5.6.15-1.linux_glibc2.5.x86_64.rpm

MySQL-server-5.6.15-1.linux_glibc2.5.x86_64.rpm

These two packages are enough.

Note: you must first install the client and then the server; otherwise, many configurations are required. It took only half a day to complete the installation. Then, after changing the installation sequence, it would be okay.

Sudo rpm-ivh MySQL-client-5.6.15-1.linux_glibc2.5.x86_64.rpm

After sudo rpm-ivh MySQL-server-5.6.15-1.linux_glibc2.5.x86_64.rpm is installed successfully

[Root @ zemo] #/etc/rc. d/init. d/mysql restart

Shutting down MySQL... [OK]

Starting MySQL. [OK]

You can. Then.

[Root @ zemo] # mysql-u root-p

Enter password:

For the first installation, you can run commands without a password:

A ../mysqladmin-u root-p oldpassword newpasswd (remember this command is an external command in/usr/local/mysql/bin)

B. SET PASSWORD FOR root = PASSWORD ('New password'); (this method is used after logging on to the database)

C. UPDATE user SET password = PASSWORD ("new password") WHERE user = 'root'; (this method after logging on to the database) reset the password.

At this point, after successful mysql configuration, Tomcat LAMP and other environment configurations will be added.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.