Freebsd6.1 ports install mysql5.1

Source: Internet
Author: User
1, # cd/usr/ports/databases/mysql51-server2, # make install clean next is waiting for the system to download the MySQL package, compile and install 3, #/usr/local/bin/mysql_install_db install and initialize database 4, # chown-r MySQL/var/DB/MySQL # chown-r MYSQL: mySQL/var/DB/MySQL # chmod 777/var/DB/MySQL can be started next,/usr/local/bin/mysqld_safe &
5. To enable msyql to support remote logon, you must add the remote logon user information to log on to MySQL:/usr/local/bin/MySQL. Add the user: Format: grant permission on Database Name. table name user @ login host identified by "User Password ";
For example: grant select, update, insert, delete on *. * To root@192.168.0.2 identified by "root ";
Update user logon to any host: update user set host = '%' where user = 'root' and Password = 'root ';
Add User information to the DB table: insert into DB
Values ('%', '%', 'root', 'y ', 'y ', 'y', 'y', 'y ');
Update dB set host = '%' where user = 'root ';

 

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.