随笔分类 - mysql
mysql数据库相关资料
摘要:1.1 官网手动下载: 官网网址:https://dev.mysql.com/downloads/mysql/ 1.2.上传到目录/opt下 解压 tar -zxvf mysql-8.0.11-linux-glibc2.12-x86_64.tar.gz cd mysql-8.0.11-linux-g
阅读全文
摘要:1.检查MySQL服务器是否启动 localhost:~ mhx$ ps -ef | grep mysqld 0 1053 1 0 9:59上午 ttys000 0:00.03 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local
阅读全文
摘要:处理方案: 1、先用localhost方式连接到MySQL数据库,然后使用MySQL自带的数据库mysql; use mysql; 2、执行:select host from user where user = 'root'; 发现,host的值就是localhost。 所以将它的值改掉:updat
阅读全文
摘要:1.显示当前编码命令: show variables like 'char%'; 2.设置编码为utf8命令:set names 'utf8';
阅读全文
摘要:1.导入 打开终端输入:(前提是已经配置过MySQL环境变量) mysql -u root -p create database name; use name; source 『将.sql文件直接拖拽至终端,自动补全其文件目录』 2.导出 打开『终端』输入: cd 『打开要将.sql文件生成的文件位
阅读全文
摘要:1.查看编码命令: mysql> show variables like '%character%'; + + + | Variable_name | Value | + + + | character_set_client | gb2312 | | character_set_connection
阅读全文
摘要:1.下载mysql-5.7.13-osx10.11-x86_64.dmg安装包,并点击dmg安装包进行安装 2.安装完成后弹出如以下提示信息: 2016-06-23T01:14:48.649253Z 1 [Note] A temporary password is generated for roo
阅读全文