mysql5.7.13 使用笔记

Posted on   风行天下-2080  阅读(118)  评论(0编辑  收藏  举报

社区版下载地址: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;'

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

编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?

随笔 - 618, 文章 - 0, 评论 - 6, 阅读 - 37万

Copyright © 2025 风行天下-2080
Powered by .NET 9.0 on Kubernetes

点击右上角即可分享
微信分享提示