can't connection to mysql server
http://www.cnblogs.com/benben7466/archive/2009/03/16/1413002.html
需排除防火墙问题
注释my.cnf 这行
# bind-address = 127.0.0.1
mysql运行了,也在mysql建立帐户,授权了,但是不能远程访问mysql,其实是防火墙的问题,关闭即可
linux 服务器mysql已经配置好,远程连接不上
先确认你已经开始了允许远程访问的权限:
◆为了在其它电脑上能用root用户登录,需进行以下动作:
1、mark@marklinux mark>mysql -h localhost -u root
//这样应该可以进入MySQL服务器
2、mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION
//赋予任何主机访问数据的权限
3、mysql>FLUSH PRIVILEGES
//修改生效
4、mysql>EXIT
//退出MySQL服务器
这样就可以在其它任何的主机上以root身份登录啦!
分享到:
相关推荐
如果以上工作都做过还是出现: ERROR 2003 (HY000): Can’t connect to MySQL server on ‘*.*.*.*’ (113),那就得考虑防火墙的问题了,关掉防火墙/etc/rc.d/init.d/iptables stop 修改完后需要 restart mysql (/...
Otherwise no client application can connect to the server. After you have opened the port please press [Retry] to apply the security settings. If you are re-installing after you just uninstalled the...
对于Windows XP系统,可能存在TCP/IP连接数的限制,但Windows Server 2003及以上版本通常没有此类限制。不过,仍需关注系统整体的连接数,确保不超过其最大值。 5. **配置MySQL服务器参数**: 考虑到MySQL服务器...
描述中提到,“With this script you can connect the php with the MySQL database.”确认了这一点,它提供了一个脚本来实现这个目的。 首先,我们来了解一下PHP的`mysql_connect()`函数。这是一个已经废弃的函数...
You can turn off this feature to get a quicker startup with -A Database changed ``` 2. **授权远程访问权限**: - 授予 root 用户从任何主机访问所有数据库的权限: ``` mysql> grant all on *.* to root@...
check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by "12345678"' at line 1 的错误,原因是新版本mysql版本把将创建账户和赋予权限分开了。 ...
You can turn off this feature to get a quicker startup with -A Database changed ``` 第五步:修改密码 现在,我们可以修改 ROOT 密码了。在这里,我们将密码修改为 “root123”。 ``` mysql> update user set ...
- 错误提示:`ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)` - 解决方案: - 确保MySQL服务正在运行。 - 检查端口号是否正确。 - 检查防火墙设置是否阻止了连接。 2. **权限问题:** -...
如果遇到 `ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)` 错误,可能是权限问题导致。 ```bash sudo chown -R openscanner:openscanner /var/lib/...
2. **MySQL Server**:MySQL 是一款关系型数据库管理系统。 3. **MySQL JDBC Connector**:它是一个 Java 库,用于实现 Java 应用与 MySQL 数据库之间的连接。 #### 二、创建数据库及表 根据给定的描述,我们首先...
[root@mysql mysql]# mysql -uroot -...Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.7.18 Copyright (c) 2000, 2017, Oracle and/or its affiliates.
Navicat Premium is a multi-connections database administration tool allowing you to connect to MySQL, SQL Server, SQLite, Oracle and PostgreSQL databases simultaneously within a single application, ...
This should speed up operations on multiple rows with blobs * Fixed bug where connecting to a down or non-existent server would not timeout * Improved connection string handling. Now if there...
Navicat Premium is a multi-connections database administration tool allowing you to connect to MySQL, SQL Server, SQLite, Oracle and PostgreSQL databases simultaneously within a single application, ...
5.1.4. mysql.server:MySQL服务器启动脚本 5.1.5. mysqld_multi:管理多个MySQL服务器的程序 5.2. mysqlmanager:MySQL实例管理器 5.2.1. 用MySQL实例管理器启动MySQL服务器 5.2.2. 连接到MySQL实例管理器并创建...
The **Sun Java System Portal Server 7.1 Deployment Planning Guide** is an essential resource for IT professionals and system administrators looking to deploy the Sun Java System Portal Server 7.1....
如果发现`collation_connection`, `collation_database`, `collation_server`等变量的值不是`utf8_general_ci`,则可以通过以下命令进行修改: ``` SET collation_connection = utf8_general_ci; ``` - 检查与...
We have joined the experience of long-term successful development into one great product which provides unified access to popular databases such as Oracle, Microsoft SQL Server, MySQL, InterBase, ...
The use of JSP (JavaServer Pages) technology enables dynamic content generation, allowing the system to adapt to different user interactions. JSP combines JAVA code with HTML, making it easier to ...
The server-side processing handles the complex image processing tasks, while the client-side only requires an internet connection to view the results. This distribution of workload between the client...