
mysql
qq_40572277
这个作者很懒,什么都没留下…
展开
-
使用MySQL数据库时出现“Reading table information for completion of table and column names...”
mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || mysql || performance_schema || sys || test_db_tw...原创 2020-04-07 12:01:01 · 1823 阅读 · 0 评论 -
centos7安装MySQL8
1.下载地址:MySQL# wget https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm如果没有wget命令,则需要安装:yum -y install wget2.安装mysql8:# yum -y localinstall mysql80-community-release-el7-1.noarc...转载 2019-01-07 11:38:57 · 144 阅读 · 0 评论 -
SQLyog连接数据库出现1130错误
修改root的连接限制,host=’%'为允许所有IP都有连接权限# mysql -u root -pEnter password:mysql> use mysql;mysql> select host from user where user='root';mysql>update user set host='%' where user='root';mysql&...转载 2019-01-07 11:51:40 · 3031 阅读 · 0 评论 -
SQLyog连接Linux中的数据库出现2003错误
出现2003错误是因为Linux没有开放3306端口。# iptables -L -n //查看开放的端口# iptables -A INPUT -p tcp --dport 3306 -j ACCEPT转载 2019-01-07 11:55:53 · 3599 阅读 · 0 评论 -
SQLyog连接Linux中的MySQL8出现2058错误
# mysql -u root -pEnter password:mysql>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';'password’为MySQL的登录密码。转载 2019-01-07 12:01:57 · 1787 阅读 · 3 评论 -
centos7安装MySQL后没有生成临时密码
在centos7安装MySQL后,/var/log/mysqld.log中没有生成临时密码# rm -rf /var/lib/mysqld# systemctl start mysqld# grep 'temporary password' /var/log/mysqld.log2019-01-07T10:38:33.469921Z 5 [Note] [MY-010454] [Server...转载 2019-01-07 12:09:35 · 7320 阅读 · 3 评论 -
Linux(centos7)下忘记MySQL8密码
先关闭MySQL服务# systemctl stop mysqld进入my.cnf# vi /etc/my.cnf在[mysql] 下添加 skip-grant-table重启MySQL:# systemctl restart mysqld进入MySQL,修改密码# mysql -u root -pEnter password: //回车进入mysql>use m...转载 2019-01-07 14:47:49 · 1269 阅读 · 0 评论 -
CentoS7安装MySQL
下载MySQL8复制链接[root@localhost /]# wget https://dev.mysql.com/get/mysql80-community-release-el7-2.noarch.rpm[root@localhost /]# yum -y localinstall mysql80-community-release-el7-2.noarch.rpm[root@l...转载 2019-04-11 21:59:16 · 381 阅读 · 0 评论 -
win10的MySQL8忘记密码
以管理员身份运行cmd(mysql目录下的文件夹bin已加入到环境变量中);先关闭MySQL服务:net stop mysql;再执行:mysqld --console --skip-grant-tables --shared-memory不要关闭该界面,重新以管理员身份运行cmd;更改密码退出重启MySQL服务:net start mysql;...原创 2019-05-05 23:10:01 · 1448 阅读 · 3 评论