关于如何连接阿里云服务器上的MySQL数据库的解答
来源:互联网 发布:手机版ps软件 编辑:程序博客网 时间:2024/05/16 17:47
用 SSH客户端登录上以后
首先启动数据库:
[root@iZm5ec880z2rorZ ~]# service mysqld start
[root@iZm5ec880z2rorZ ~]# mysql -u root -p
Enter password: (输入你的数据库密码)
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.1.73-log MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use mysql
Database changedmysql> GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'ldyu123' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit;
退出后,输入下边的命令:
[root@iZm5ec880z2rorZ ~]# service mysqld restart
Shutting down MySQL... [ OK ]
Starting MySQL. [ OK ]
然后在本地输入自己设置的密码(这里是 ldyu123)就可以连接上来了
0 0
- 关于如何连接阿里云服务器上的MySQL数据库的解答
- 关于本地mysql客户端如何连接阿里云服务器上的MySQL数据库
- 连接阿里云服务器上的MySQL数据库
- 使用Navicat连接阿里云服务器上的MySQL数据库
- 使用Navicat连接阿里云ECS服务器上的MySQL数据库
- 使用Navicat连接阿里云ECS服务器上的MySQL数据库
- 使用Navicat连接阿里云ECS服务器上的MySQL数据库
- 关于阿里云服务器上连接的问题
- navicate连接阿里云服务器上的mysql
- 阿里云ESC云服务器的mysql数据库远程连接
- 远程连接阿里云服务器的'本地'MySQL数据库
- 阿里服务器(1)---如何连接上我的服务器
- MySQL连接远程服务器上的数据库
- 阿里云服务器 mysql远程连接时,出现连接不上的解决办法
- 10038错误,无法连接上阿里云服务器上的MySQL
- 阿里云上Mysql数据库的备份
- 阿里云服务器如何连接阿里云数据库
- MySQL Workbench 如何连接 Amazon EC2 上的MySQL服务器?
- iOS开发masonry动态布局cell高度
- CURL常用命令
- Android 标题栏沉浸式的实现
- MapReduce:详解Shuffle过程
- IPHONE,zlib库编译iphone版本
- 关于如何连接阿里云服务器上的MySQL数据库的解答
- puppet的第一个自己写的模块
- 安卓webView加载HTML数据
- pl/sql 过程 函数
- 0/1背包问题
- IE(IE6/IE7/IE8)支持HTML5标签
- ckeditor+ckfinder 由于文件系统的限制,该请求不能完成
- 杭电acm-sum number
- Error: Library projects cannot set applicationId. applicationId is set to "com.du.android.recyclervi