gentoo 安装mysql

WBOY
リリース: 2016-06-07 15:24:47
オリジナル
1480 人が閲覧しました

1 sudoemergemysql 2 sudo ebuild /var/db/pkg/dev-db/mysql-5.1.56/mysql-5.1.56.ebuild config Password: * Please provide a password for the mysql 'root' user now, in the * MYSQL_ROOT_PASSWORD env var or through the /root/.my.cnf file. * Avoid

1 sudo emerge mysql 

 

2sudo ebuild /var/db/pkg/dev-db/mysql-5.1.56/mysql-5.1.56.ebuild  config
Password:
 * Please provide a password for the mysql 'root' user now, in the
 * MYSQL_ROOT_PASSWORD env var or through the /root/.my.cnf file.
 * Avoid ["'/_%] characters in the password
    >
 * Retype the password
    >
 * Creating the mysql database and setting proper
 * permissions on it ...
 * Starting mysqld ...                                                    [ ok ]
 * Setting root password ...                                             [ ok ]
 * Loading "zoneinfo", this step may require a few seconds ... ...       [ ok ]
 * Stopping the server ...
 * Done
3:sudo /etc/init.d/mysql start
 * Caching service dependencies ...                                       [ ok ]
 * Starting  ...
 * Starting  (/etc/mysql/my.cnf)    

4:mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or /g.
Your MySQL connection id is 1
Server version: 5.1.56-log Gentoo Linux mysql-5.1.56

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.

 

5让系统自动启动

sudo rc-update add mysql default  

 

 

 

6

Messages for package dev-db/mysql-5.1.56:

 * MySQL MY_DATADIR is /var/lib/mysql
 * You might want to run:
 * "emerge --config =dev-db/mysql-5.1.56"
 * if this is a new install.
 * If you are upgrading major versions, you should run the
 * mysql_upgrade tool.

関連ラベル:
ソース:php.cn
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!