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

  • Home
  • SEARCH
  • 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 7975997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:47:58+00:00 2026-06-04T08:47:58+00:00

My phpmyadmin or MySQL commandline will not let me execute the following query: SELECT

  • 0

My phpmyadmin or MySQL commandline will not let me execute the following query:

SELECT customer.First, customer.Last, login.Username, login.Password, customer.Addrln1,
    customer.Addrln2, customer.Postcode, customer.County, customer.Country, customer.Phone, customer.Email, 
    employee.EmpFirst, employee.EmpEmail, move.MoveID, move.CityOrig, move.CityDest, move.CountryOrig, 
    move.CountryDest, move.EnquiryDate, move.Surveydate, move.QuoteDate, move.DepEst, move.DepAct, move.ArrEst, move.ArrAct,
    move.ClearEst, move.ClearAct, move.DelEst, move.DelAct, move.Port, move.Method, move.Status
FROM customer
LEFT JOIN oim2.login ON customer.CustID = login.CustID
LEFT JOIN oim2.move ON customer.CustID = move.CustID
LEFT JOIN oim2.employee ON move.EmpID = employee.EmpID
WHERE customer.First =  'dave' and customer.Last='smith'

1142 – SELECT command denied to user ‘oceanai3’@’localhost’ for table ‘login’

Dave smith is just an example first and last name, the user can perform the following queries:
SELECT * from login
SELECT * FROM move
SELECT * FROM customer

If I remove the references to login out of the original query I then get the error #1142 – SELECT command denied to user ‘oceanai3’@’localhost’ for table ‘move’. I have pastebin’d the full sql file of the db and it can be found here at: http://pastebin.com/H6aTS74m
I have trawled through a lot of other peoples posts to find an answer but I couldnt find anything that helped me.

Thanks

C

  • 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-04T08:48:00+00:00Added an answer on June 4, 2026 at 8:48 am
    GRANT SELECT ON database.* TO user@'localhost' IDENTIFIED BY 'password';
    

    Replace the placeholders with your values.

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

Sidebar

Related Questions

Using phpMyAdmin and running the following query I get 19 registers: SELECT * FROM
I just decided to replace phpMyAdmin by Mysql Query Browser ( finally I can
When it comes to MySQL and PHPMyAdmin, I'm not a novice, but I'm closer
Please note that this question is not about the mysql query per se, but
Please note that this question is not about the mysql query per se, but
How can I increase username length of PhpMyAdmin/mysql user account? Edit : Sorry for
Is there any syntax query in mysql phpmyadmin to trim alphanumeric(varchar) data? Here's how
I`m trying to run a nested query on MySQL (phpmyadmin) and via PHP, and
I have access to phpMyAdmin, but NOT the MySQL command line. I need to
i want to execute a mysql stored procedure from mysql command prompt in phpmyadmin.stored

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.