ganluo960214 发表于 2016-04-06 15:37

编译参数
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DWITH_BOOST=boost/boost_1_59_0 -DSYSCONFDIR=/usr/local/etc -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_UNIX_ADDR=/tmp/mysql.sock

ganluo960214 发表于 2016-04-06 15:37

/usr/local/mysql/bin/mysqld --initialize-insecure --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data初始化 注意data的权限。

ganluo960214 发表于 2016-04-06 15:38

xubuntu 14.04

ganluo960214 发表于 2016-04-06 15:38

@xinn2003 你试试喃。

ganluo960214 发表于 2016-04-06 15:39

最好现在 mysql-boost 不用下载

SeAL80s 发表于 2016-04-06 17:57

回复 19# action08


    我不编译MySQL,顶多是手动安装...

action08 发表于 2016-04-06 18:12

回复 25# ganluo960214


    这个不是你下载,就是编译自动下载,肯定离不开的依赖

action08 发表于 2016-04-08 19:06

# mysql -p
Enter password:
Welcome to the MySQL monitor.Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.11

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

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

mysql>
mysql> show databases;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql>
mysql> use mysql;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql>
mysql> alter user 'root'@'localhost' identified by 'root';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> alter user 'root'@'localhost' identified by 'root1234';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> ^DBye
# poweroff

Broadcast message from root@192.168.1.8
        (/dev/pts/0) at 11:35 ...

The system is going down for power off NOW!
# Connection to 192.168.1.8 closed by remote host.
Connection to 192.168.1.8 closed.
shell@localhost:~$
:outu::outu::outu:这辈子基本不会再玩了,变化太快

alvinwan 发表于 2016-04-13 10:37

我装过。:)

ASKV-UNIX 发表于 2016-04-14 09:41

增长知识了。。。
页: 1 2 [3] 4
查看完整版本: mysql 5.7.11谁装过