mysql5.7.13 使用笔记 风行天下

社区版下载地址:https://dev.mysql.com/downloads/mysql/

 安装:http://www.linuxidc.com/Linux/2016-04/130414.htm                  https://www.cnblogs.com/zhao1949/p/5947938.html  (配置文件my.cnf在网页的最下面)

更新yum 源:http://blog.csdn.net/yuchao2015/article/details/52138473

tar解压失败:http://alany.blog.51cto.com/6125308/1422299

################################################################# 

修改登录密码方法1: 用SET PASSWORD命令
首先登录MySQL。
格式:mysql> set password for 用户名@localhost = password('新密码');
例子:mysql> set password for root@localhost = password('123'); 

[root@localhost mysql]# bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql
2017-04-28T01:25:18.564864Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-04-28T01:25:23.900497Z 0 [Warning] InnoDB: New log files created, LSN=45790
2017-04-28T01:25:24.827261Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2017-04-28T01:25:25.004382Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 8e05dad0-2bb1-11e7-a899-000c29157c00.
2017-04-28T01:25:25.007494Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2017-04-28T01:25:25.009784Z 1 [Note] A temporary password is generated for root@localhost: et5r<#zS(aki

#########################################################################

mysql新建的数据库文件存在哪

https://zhidao.baidu.com/question/500866607392835964.html

2.mysql客户端中输入show variables like '%datadir%'查看;


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
在表的第一列添加一个新字段

mysql> alter table userlist add id int(10) auto_increment primary key first;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

mysql> SELECT * FROM stu_info GROUP BY age;
ERROR 1055 (42000): 错误解决办法:http://blog.csdn.net/u011409644/article/details/73611102 

¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥

mysql重设密码错误:ERROR 1054 (42S22): Unknown column 'password' in 'field list'

解决办法:版本问题,http://blog.csdn.net/u010603691/article/details/50379282

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

 scp:远程复制命令:http://www.jb51.net/article/34424.htm  (出错解决办法)

 方法:https://www.cnblogs.com/tocy/p/linux_scp_remote-file-transfer.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

远程连接mysql注意问题:关闭防火墙iptables -F  ,关闭selinux 方法:setenforce 0; 或者/etc/sysconfig/selinux  修改

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

开启binlog出现错误:http://www.zhimengzhe.com/shujuku/MySQL/104294.html

[root@yao ~]# service mysql start
Starting MySQL. ERROR! The server quit without updating PID file (/data/mysql/mysqld.pid).

@@@@@@@@@@@@@@@@@@@@@@@@

使用phpMyadmin4.0可以管理4.7.5却不可以:

4.0下载的是zip中文版本:http://www.mycodes.net/62/9384.htm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

外部执行mysql 语句:

[root@yao ~]# mysql -u root -p -e 'show databases;'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

原文地址:https://www.cnblogs.com/yaok430/p/7847223.html