Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8139743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:55:50+00:00 2026-06-06T11:55:50+00:00

I have an ubuntu server with mysql installed, at one point I saw the

  • 0

I have an ubuntu server with mysql installed, at one point I saw the php code running on the server could access mysql but I can’t access mysql remotely, for another server or sequal pro.

$ mysql -u root -p
mysql> GRANT ALL on *.* TO 'thomas'@'%';
mysql> exit
$ mysql -u thomas -p
mysql> show grants;
+------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for thomas@localhost                                                                                                              |
+------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'thomas'@'localhost' IDENTIFIED BY PASSWORD '[ENCRYPTEDPASSWORD]' WITH GRANT OPTION |
+------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
mysql> exit
$ mysql -u thomas -p -h [SERVERIP]
ERROR 1045 (28000): Access denied for user 'thomas'@'[SERVERNAME]' (using password: YES)

Update:

I wen’t in and dropped all the users that where made (some didn’t have passwords) I was going by the mysql.user table and using the drop user command.

CREATE USER 'thomas'@'localhost' IDENTIFIED BY '[PASSWORD]';
GRANT ALL PRIVILEGES ON *.* TO 'thomas'@'localhost' IDENTIFIED BY '[PASSWORD]';
GRANT ALL PRIVILEGES ON *.* TO 'thomas'@'[SERVERIP]' IDENTIFIED BY '[PASSWORD]';
GRANT ALL PRIVILEGES ON *.* TO 'thomas'@'%' IDENTIFIED BY '[PASSWORD]';

the table now looks like this:

+--------------+------------------+
| Host         | User             | 
+--------------+------------------+
| localhost    | root             | 
| localhost    | phpmyadmin       | 
| 127.0.0.1    | root             | 
| ::1          | root             | 
| localhost    | debian-sys-maint | 
| localhost    | thomas           | 
| [SERVERIP]   | thomas           | 
| %            | thomas           | 
+--------------+------------------+
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:55:51+00:00Added an answer on June 6, 2026 at 11:55 am

    Well, you have

    GRANT ALL PRIVILEGES ON *.* TO 'thomas'@'localhost'
    

    but you are not on localhost. You might want to try

    GRANT ALL PRIVILEGES ON *.* TO 'thomas'@'%'
    

    Ofcourse you have to add IDENTIFIED BY 'password' if you so desire

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two websites running on my own root server (ubuntu/nginx/php-fpm). Now I want
I don't have phpMyAdmin installed on a ubuntu server but want to show all
I have a running (in production) mysql instance on my linux server (ubuntu-10.10) however
I am running a ubuntu server with apache/php/mysql. I want to use selenium on
I have a server that is running Ubuntu Linux Server Edition. I once had
Our setup as follows: We have a local development server running Ubuntu, with a
I have just installed Debian Lenny with Apache, MySQL, and PHP and I am
i have a virtual ubuntu server running in windows 7 pro using VMware Player.
I have just installed Rails Ready script from GitHub on my Ubuntu Server 10.04.
I'm adding PHP (php-fpm) to an existing Nginx Ubuntu 10.04 server and can't get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.