先登录本机mysql① # mysql -uroot -plam2linux 查看含有哪些库② > show databases; 切换库 ③ > use discuz 或 use mysql 查看当前在哪个库下
原创
2015-07-20 18:05:18
446阅读
Mysql的查询、新建,删除、管理、mysql的root忘记密码、备份与恢复等基本Mysql操作语句
原创
2015-08-26 17:40:39
607阅读
点赞
1评论
MySQL的常用操作 1、登录 mysql -u root -p 2、修改登录密码 2.1使用mysqladmin //mysqladmin -u用户名 -p旧密码 password 新密码 mysqladmin -u root -proot password jack 2.2修改user表 mys ...
转载
2021-09-05 19:41:00
96阅读
2评论
连接mysql:mysql -hhostname -uusername -ppassword [root@master ~]# mysql -uroot -p #连接到本地的mysql [root@master ~]# mysql -h192.168.137.112 -uroot -p #连接到137.112的mysql查看有哪些库:mysql> show
原创
2015-11-27 20:14:13
319阅读
查看都有哪些库 > show databases;查看某个库的表 > use db; show tables;查看表的字段 > desc tb;查看建表语句 > show create table tb;当前
原创
2016-01-02 22:29:51
378阅读
mysql默认的是没有给mysql设置密码可以直接登录[root@zhangmengjunlinux ~]# mysql -urootWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2Server version: 5.1.73-log MySQL Community
原创
2016-01-07 21:40:21
450阅读
查看都有哪些库 > show databases;查看某个库的表 > use db; show tables;查看表的字段 > desc tb;查看建表语句 > show create table tb;当前
原创
2016-02-25 11:51:20
513阅读
点赞
1评论
MySQL常用操作授权超级用户:grant all privileges on *.* to 'tangnanbing'@'%' identified by '1qaz@WSX' with grant option;查看库:show databases;查看都有哪些库
原创
2017-06-14 17:36:29
535阅读
1.初次启动#mysqlupdatemysql.usersetauthentication_string='newpass',plugin='mysql_native_password'whereuser='root';flushprivileges;exit;$mysql-uroot-p//本地登陆$mysql-ualoha-p-hip//远程登陆
原创
2018-07-22 11:08:14
886阅读
常用MySQL操作 更改MySQL数据库root的密码 将绝对路径加入环境变量并设置开机启动 # PATH=$PATH:/usr/local/mysql/bin # echo "PATH=$PATH:/usr/local/mysql/bin" >> /etc/profile # source /et ...
转载
2021-04-23 23:05:50
200阅读
2评论
 , name VARCHAR(255), birthday DATE );2,插入数据 insert into person_test values (123,’fupeng’,’2015-01-01’);
原创
2022-10-09 10:52:54
61阅读
MySQL常用操作更改root密码首先查看MySQL服务有没有启动:psaux|grepmysql没启动把它启动:/etc/init.d/mysqldstart然后用命令登录mysql:mysql-urootquit退出来mysql命令是不能直接在root用户下用的,因为他在/usr/local/mysql/bin/mysql目录下,需要更改环境变量PATH,增加mysql绝对路径:exportP
原创
2018-07-16 20:40:17
849阅读
13.1 更改MySQL数据库root密码前面已经安装了mysql,作为一名linux运维工程师,我们需要掌握mysql一些基本的操作,以满足日常运维工作所需。第一次进入数据库不需要密码:# /usr/local/mysql/bin/mysql -uroot # -u 指定要登录的用户,后面有无空格都行;root为mysql自带的管理员账号,默认没有密码Welcome to t...
原创
2021-04-25 10:14:13
243阅读