Results 1 to 5 of 5

Thread: How to remote connections by MySQL database server

  1. #1
    Join Date
    Feb 2010
    Posts
    137

    question How to remote connections by MySQL database server

    Hi all,

    I am using CentOS. It is installed in the MySQL database server, the system due to security considerations, the default is not supported by non-native users to connect to the database server, if i want the user to another machine connected to the database server. I just want to know that how to remote connections by MySQL database server. Thanks.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    How to remote connections by MySQL database server

    In the console implementation of the mysql-u root-p mysql, the system prompts the user entered into the database root password, enter into the mysql console immediately after the completion of this command the first one is the implementation of the mysql command, and the second is the system data name of the mysql is not the same. Check the process and reply.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    How to remote connections by MySQL database server

    In the mysql console to execute commands in the 'root'@'%' can interpret it this way: root is the user name,% is the host name or IP address, where% represents any host or IP address, you can also replace any other user name or specify a unique IP address; 'MyPassword' is for authorized users to specify the login password for the database; Another point is that I need to note here are authorized for all permissions. Check and reply.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    How to remote connections by MySQL database server

    if you can not trust the implementation of the mysql console, select host, user from user; check the contents of a user table. in the mysql console implementation of the GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY' MyPassword 'WITH GRANT OPTION. check the baove procedure and reply me back. Thanks in advance.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to remote connections by MySQL database server

    You need the root or mysql username and password to log in to MySQL using Telnet or an SSH client. This agree to you to perform question at the command prompt. At the command prompt, type
    Code:
    mysql -u username -p
    Enter password when prompted. Once logged in, you can list all available databases by typing:
    Code:
    SHOW DATABASES;
    Create a Database by typing :
    Code:
    CREATE DATABASE databasename123;
    and add users to a database by typing
    Code:
    GRANT ALL PRIVILEGES ON databasename123.* TO newuser@"%" IDENTIFIED BY "newpassword";

Similar Threads

  1. Issues in C# application connecting to Remote MySQL 5 database.
    By kyosang in forum Software Development
    Replies: 5
    Last Post: 25-01-2010, 04:24 PM
  2. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  3. SQL Server does not allow remote connections
    By Bofinn in forum Software Development
    Replies: 3
    Last Post: 04-02-2009, 06:17 PM
  4. Server 2008 does not allow remote connections
    By thejamie in forum Windows Server Help
    Replies: 1
    Last Post: 13-11-2008, 05:56 AM
  5. Replies: 7
    Last Post: 26-10-2007, 12:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,430,295.29360 seconds with 17 queries