[root@localhost data]# service mysql start
Starting MySQL. SUCCESS!
一登陆就这样的 用空密码登录的话
显示数据库什么的操作都提示找不到
[root@localhost sc
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.22 Source distribution
Copyright (c) 2000, 2014, 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.
段错误
然后就是找不到了
[root@localhost bin]# show databa
-bash: show: 未找到命令
下面这个是编译mysql的选项
cmake \
-DCMAKE_INSTALL_PREFIX=/usr/etc/mysql
-DMYSQL_DATADIR=/usr/etc/mysql/data
-DSYSCONFDIR=/etc/mysql/
-DWITH_MYISAM_STORAGE_ENGINE=1
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DWITH_HEAP_STORAGE_ENGINE=1
-DWITH_PARTITION_STORAGE_ENGINE=1
-DMYSQL_UNIX_ADDR=/tmp/mysqld.sock
-DMYSQL_TCP_PORT=3306
-DENABLED_LOCAL_INFILE=1
-DWITH_EXTRA_CHARSETS:STRING=utf8,gbk
-DDEFAULT_CHARSET=utf8
-DDEFAULT_COLLATION=utf8_general_ci
这里是详细的过程记录 到底哪里的问题呢 有没有朋友遇到呢http://www.cnblogs.com/xxx91hx/p/4256519.html
最佳答案
