Install mysql In debian and mysql In debian

Source: Internet
Author: User

Install mysql In debian and mysql In debian

Apt-get install mysql-client mysql-server

In the middle, you will need to set the password. After the password is set, mysql will be automatically started.

You can use ps-ef | grep mysql to view related mysql processes.

Then modify the mysql database path.

1. First turn mysql off service mysql stop

2. Modify basedir =/rzcm/mysql/data/mysql in/etc/mysql/my. cnf.

3. Run the command "copy/var/lib/mysql with permission" to/rzcm/mysql/data: cp-arp/var/lib/mysql/rzcm/mysql/data

4. start the service: service mysql start

If you want to use an Internet IP address to connect mysql to the user table of mysql Data

Update user set host = '%' where Host = 'localhost'

After modification, restart mysql or flush privileges.


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.