`
wutao8818
  • 浏览: 612697 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

can't connection to mysql server

    博客分类:
  • db
阅读更多
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身份登录啦!

分享到:
评论

相关推荐

    Can’t connect to MySQL server的解决办法

    如果以上工作都做过还是出现: ERROR 2003 (HY000): Can’t connect to MySQL server on ‘*.*.*.*’ (113),那就得考虑防火墙的问题了,关掉防火墙/etc/rc.d/init.d/iptables stop 修改完后需要 restart mysql (/...

    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...

    MYSQL无法连接 提示10055错误的解决方法

    对于Windows XP系统,可能存在TCP/IP连接数的限制,但Windows Server 2003及以上版本通常没有此类限制。不过,仍需关注系统整体的连接数,确保不超过其最大值。 5. **配置MySQL服务器参数**: 考虑到MySQL服务器...

    mysql提示got timeout reading communication packets的解决方法

    MYSQL server has gone away 引起这个原因是不可怕的.原因是更改了系统的断开时间. mysql>show gloable variables like “%timeout%”; 进行查看 interactive_timeout 的黓认值为28800 wait_timeout 的默认值这:...

    php connect to mysql.rar_MYSQL_connect

    描述中提到,“With this script you can connect the php with the MySQL database.”确认了这一点,它提供了一个脚本来实现这个目的。 首先,我们来了解一下PHP的`mysql_connect()`函数。这是一个已经废弃的函数...

    redhat5下mysql5.6的安装与简单维护

    You can turn off this feature to get a quicker startup with -A Database changed ``` 2. **授权远程访问权限**: - 授予 root 用户从任何主机访问所有数据库的权限: ``` mysql> grant all on *.* to root@...

    mysql-8.0.20-macos10.15-x86_64.tar.gz

    check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by "12345678"' at line 1 的错误,原因是新版本mysql版本把将创建账户和赋予权限分开了。 ...

    MYSQL破解ROOT密码

    You can turn off this feature to get a quicker startup with -A Database changed ``` 第五步:修改密码 现在,我们可以修改 ROOT 密码了。在这里,我们将密码修改为 “root123”。 ``` mysql> update user set ...

    在Eclipse中用JDBC连接MySQL数据库!.txt

    - 错误提示:`ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)` - 解决方案: - 确保MySQL服务正在运行。 - 检查端口号是否正确。 - 检查防火墙设置是否阻止了连接。 2. **权限问题:** -...

    阿里云centos7mysql tomcat 配置

    如果遇到 `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/...

    java连接mysql

    2. **MySQL Server**:MySQL 是一款关系型数据库管理系统。 3. **MySQL JDBC Connector**:它是一个 Java 库,用于实现 Java 应用与 MySQL 数据库之间的连接。 #### 二、创建数据库及表 根据给定的描述,我们首先...

    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 11.2.12 Premium x64

    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, ...

    ByteFX.MySqlClient.76.NI

    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...

    PremiumSoft Navicat Premium Enterprise v11.2.13 (x86 & x64)

    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, ...

    Portal Server Guide

    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....

    mysql插入数据中文报错问题,最全解决方式

    如果发现`collation_connection`, `collation_database`, `collation_server`等变量的值不是`utf8_general_ci`,则可以通过以下命令进行修改: ``` SET collation_connection = utf8_general_ci; ``` - 检查与...

    unidac+3.0.010 各种数据库连接

    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, ...

    基于SSM+mysql的校园二手物品交易系统微信小程序源码数据库论文.doc

    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 ...

    MySQL5.1参考手册官方简体中文版

    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实例管理器并创建...

Global site tag (gtag.js) - Google Analytics