WAMP - Allow remote access to MySQL

Posted on 2009-12-16
Last Modified: 2012-05-08

I have MySQL set up on a windows server. I wish to migrate to a new server running WAMP.

I installed WAMP just fine, and now I want to conect to MySQL with the MySQL Admininistrator tool so I can restore my backups.

When I open the MySQL adminitrator and enter the IP address of my new WAMP server,I get an error Number 1130 (Host 'xxxx' is not allowed to connect to this MySQL server'

How do I configure MySQL in WAMP such that I am allowed to use the MySQL tool to conect as root in order to perform administrative tasks?

Note - security is not the primary concern here - ease of use is. This is only being used internally. I'm quite happy to open it up to ALL remote hosts so that I can use the tool on other machines...

Question by:MDWinter
    LVL 8

    Accepted Solution

    I know you're saying you'll allow root access from any host, but its just as easy to create a new user with all privileges. Its safer, as an attacker will try the username root first. Create another username with privileges from all hosts.

    Open a dos prompt on the server you wish to be able to connect to

    Start -> cmd

    mysql -u root --password=<insert your password>

    then, from the mysql prompt, do

    GRANT ALL PRIVILEGES ON *.* TO user@'%' IDENTIFIED BY 'password';

    Author Closing Comment

    Perfect - thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL ( several years ago, it seemed like now was a good time to updat…
    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now