centos 7.0编译安装mysql5.6.22 怎么进入mysql 不是安全模式下安装

浏览:960 发布日期:2015/02/06 分类:求助交流 关键字: centos7.0 mysql5.6.22 密码不为空
mysql 正常可以启动
[root@localhost data]# service mysql start
Starting MySQL. SUCCESS!
一登陆就这样的 用空密码登录的话
显示数据库什么的操作都提示找不到
[root@localhost scripts]# mysql -u root -p
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 databases;
-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
最佳答案
评论( 相关
后面还有条评论,点击查看>>