如何查看mysql 默认端口号和修改端口号 2015-03-19 17:42:18 1. 登录mysql [root@test /]# mysql -u root -p Enter password: 2. 使用命令show global variables like 'port';查看端口号 mysql> show global variables like 'port'; +---------------+-------+ | Variable_name | Value | +-------
一.mysql 赋给用户权限 grant all privileges on *.* to joe@localhost identified by '1'; flush privileges; 即用user=joe password=1 登陆 附: mysql> grant 权限1,权限2,-权限n on 数据库名称.表名称 to 用户名@用户地址 identified by '连接口令';权限1,权限2,-权限n代表select,insert,update,delete,create,d