You are here: Re: Trouble creating a MySQL 5 view « PHP SQL « IT news, forums, messages
Re: Trouble creating a MySQL 5 view

Posted by strawberry on 01/05/07 17:57

laredotornado@gmail.com wrote:

> Hi,
>
> As root, I logged in to MySQL client and ran this command
>
> GRANT ALL PRIVILEGES ON *.* to 'myuser'@'localhost' identified by
> 'mypassword';
>
> Then I logged in as "myuser", selecting my database, and then tried to
> create a view for a table that already exists:
>
> CREATE VIEW SUMMARY_DAILY_SALES_TOTALS AS SELECT * FROM
> SUMMARY_DAILY_TOTALS;
>
> and got the error:
>
> ERROR 1142 (42000): CREATE VIEW command denied to user
> 'myuser'@'localhost' for table 'SUMMARY_DAILY_SALES_TOTALS'
>
> How can I resolve this error and create my view?
>
> Thanks, - Dave

I had a similar problem today. I don't know what went wrong but simply
restarting seemed to solve the problem - so maybe give that a go.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация