Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
MySQL error 1142
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- MySQL error 1142
MySQL error 1142
01-05-2009 9:57 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
when I run my query ...
mysql> SELECT TbL_Manufacturer.Manufacturer, Tbl_Model.model, Tbl_Site.Site, Tbl_Audit.CabLoc, Tbl_Audit.serial, Tbl_Audit.name, Tbl_Audit.saID FROM hp.Tbl_Model, hp.Tbl_Audit, hp.TbL_Manufacturer, hp.Tbl_Site WHERE ( Tbl_Model.ModelID = Tbl_Audit.ModelID AND TbL_Manufacturer.ManID = Tbl_Model.ManID AND Tbl_Audit.SiteID = Tbl_Site.SiteID ) AND Tbl_Audit.ID = 553;
ERROR 1142: SELECT command denied to user 'xxxxxx'@'212.159.xx.xxx' for table 'Tbl_Model'
I thought this was a privileges problem so I deleted my mysql database and requested plusnet create me a new one, but I still get the same error.
I can run
SELECT * from Tbl_Model ok
The query works with mysql vers 5 elsewhere so I was wondering if this was a feature of mysql vers 4 on plusnet?
Any help would be much appreciated
mysql> SELECT TbL_Manufacturer.Manufacturer, Tbl_Model.model, Tbl_Site.Site, Tbl_Audit.CabLoc, Tbl_Audit.serial, Tbl_Audit.name, Tbl_Audit.saID FROM hp.Tbl_Model, hp.Tbl_Audit, hp.TbL_Manufacturer, hp.Tbl_Site WHERE ( Tbl_Model.ModelID = Tbl_Audit.ModelID AND TbL_Manufacturer.ManID = Tbl_Model.ManID AND Tbl_Audit.SiteID = Tbl_Site.SiteID ) AND Tbl_Audit.ID = 553;
ERROR 1142: SELECT command denied to user 'xxxxxx'@'212.159.xx.xxx' for table 'Tbl_Model'
I thought this was a privileges problem so I deleted my mysql database and requested plusnet create me a new one, but I still get the same error.
I can run
SELECT * from Tbl_Model ok
The query works with mysql vers 5 elsewhere so I was wondering if this was a feature of mysql vers 4 on plusnet?
Any help would be much appreciated
Message 1 of 4
(5,065 Views)
3 REPLIES 3
Re: MySQL error 1142
02-05-2009 1:21 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
That seems like a privileges problem.
Does doing a "GRANT ALL PRIVILEGES on Tbl_Model.* to xxxxxx@212.159.xx.xxx;" help?
Does doing a "GRANT ALL PRIVILEGES on Tbl_Model.* to xxxxxx@212.159.xx.xxx;" help?
David
Message 2 of 4
(384 Views)
Re: MySQL error 1142
05-05-2009 12:24 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi there, just a couple of questions:
Which server are you on (rumpus or humbug)?
Are you calling "USE <database>" before you're running that query? (or specifying the database on the command line). <database> should be replaced by the name of your database.
Which server are you on (rumpus or humbug)?
Are you calling "USE <database>" before you're running that query? (or specifying the database on the command line). <database> should be replaced by the name of your database.
Message 3 of 4
(384 Views)
Re: MySQL error 1142
05-05-2009 7:31 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi Ben,
I think you nailed it there. My SQL statement was referencing a database that does not exist. I have reformulated it and now the query delivers the result I expect
Many thanks
Old Paulie
I think you nailed it there. My SQL statement was referencing a database that does not exist. I have reformulated it and now the query delivers the result I expect
Many thanks
Old Paulie
Message 4 of 4
(384 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page