Follow Me on Twitter
Client Support Community Server Status Contact Us Client Login
Email Hosting Website Hosting Reseller Hosting VPS Hosting Dedicated Servers

    Join our Community      Check your private messages       Profile       Search       FAQ       Memberlist       Log in


Views in MySQL

 
Post new topic   Reply to topic    NetHosted Community Index -> FTP/SQL Support
colbec Reply with quote
 NetHosted Customer

 

 Joined: 08 Sep 2006
 Posts: 107
 Location: Desert Lake, Ontario

PostPosted: Fri Feb 19, 2010 1:11 pm    Post subject: Views in MySQL
 
Could you clarify for me how views are handled @Nethosted implementation of MySQL?

I am running version 5.1.36 locally and have no problems with views which were introduced in 5.0. I just uploaded a set of tables which include views, all the tables went up except the first one which happens to be a view, a combination of real tables. The process tells me I don't have the necessary superuser privileges.

In addition while the basic tables are fine, the other views don't show any data. It looks like the system has a problem with "CREATE ALGORITHM".
Back to top
View user's profile Send private message Visit poster's website
NetHosted - Darryl Reply with quote
 NetHosted Staff

 

 Joined: 24 Jun 2005
 Posts: 1021
 

PostPosted: Fri Feb 19, 2010 1:26 pm    Post subject:
 
Hi,

Can you tell me what user that you are attempting to import this SQL with, I will check they have the appropriate privileges.

Regards,

Darryl

_________________
| Darryl Taylor
| Technical Support & Sales Manager, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
colbec Reply with quote
 NetHosted Customer

 

 Joined: 08 Sep 2006
 Posts: 107
 Location: Desert Lake, Ontario

PostPosted: Fri Feb 19, 2010 1:28 pm    Post subject:
 
Will contact you by PM to provide personal details

Here is a link which describes this error, may be of help.

http://www.hostingrails.com/MySQL-Error-1227-Access-Denied-you-need-SUPER-privilege-for-this-operation
Back to top
View user's profile Send private message Visit poster's website
NetHosted - Darryl Reply with quote
 NetHosted Staff

 

 Joined: 24 Jun 2005
 Posts: 1021
 

PostPosted: Fri Feb 19, 2010 1:35 pm    Post subject:
 
Hi,

This seems to suggest that trying to run this via PHPMyAdmin may work, have you already attempted this?

Regards,

Darryl

_________________
| Darryl Taylor
| Technical Support & Sales Manager, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
colbec Reply with quote
 NetHosted Customer

 

 Joined: 08 Sep 2006
 Posts: 107
 Location: Desert Lake, Ontario

PostPosted: Fri Feb 19, 2010 1:42 pm    Post subject:
 
Solved:

When mysql creates the SQL for the CREATE ALGORITHM statement it includes a DEFINER='xxxxx'@'xxxxx' section in the statement. It does no good to change this to xxxx@your_real_database_at_nethosted, you have to drop that part entirely.

With this removed the import goes fine and even though on rollover it appears to show 0 records, on double click you see what you expect to see.

Edit: I was and am using PHPMyAdmin
Back to top
View user's profile Send private message Visit poster's website
NetHosted - Darryl Reply with quote
 NetHosted Staff

 

 Joined: 24 Jun 2005
 Posts: 1021
 

PostPosted: Fri Feb 19, 2010 1:45 pm    Post subject:
 
Hi,

Ah fair enough, glad that you got this solved and thank you for posting the solution, I'm sure this will be of help to others!

Regards,

Darryl

_________________
| Darryl Taylor
| Technical Support & Sales Manager, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
Post new topic   Reply to topic    NetHosted Community Index -> FTP/SQL Support
Page 1 of 1

User Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

 
Jump to: