Unbuntu MySQL installation and simple configuration

Source: Internet
Author: User

Ubuntu build MySQL Reference http://www.cnblogs.com/wuhou/archive/2008/09/28/1301071.html
1. sudo apt-get install Mysql-server\
You need to make the root password password.
2. vi/etc/mysql/my.cnf
Comment out binding-address=127.0.0.1
3. If you need to configure MySQL on the server side, install Mysql-client
Mysql-u Root P
4. If you need to connect to the database server remotely, you need to turn on permissions (default is not remote connection: Navicat 1130 error)
Mysql> Grant all privileges on * * to [email protected] '% ' identified by ' password ' with GRANT option; (Any host can)
Grant all privileges on * * to [email protected] ' 192.168.1.3 ' identified by ' password ' with GRANT option; Flush privileges (designated host)

Note that the user table in the MySQL library records the connection information
5. Modify character Set (note garbled problem http://www.2cto.com/database/201108/101151.html)
View current encoding: Show variables like ' character% ';
Modify MY.CNF, add Default-character-set=utf8 under [client]
Create database ' sb ' character et ' UTF8 '

Unbuntu MySQL installation and simple configuration

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.