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 1058573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:02:44+00:00 2026-05-16T18:02:44+00:00

I have a code to create VIEW in mysql database which is working fine

  • 0

I have a code to create VIEW in mysql database which is working fine on my local server.
It creates and crop view normally. But on my Online server it gives error

"CREATE VIEW command denied to user"

for online database I manually create VIEW in Database form PHPmyAdmin [Myadmin is in localhost online] it creating, SO i have permission to create VIEW on online database.

But with php mysql_query it is giving command denied error. is there any service to be on for creating view with php.

  • 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-05-16T18:02:45+00:00Added an answer on May 16, 2026 at 6:02 pm

    This message says that user doesn’t have enough permissions to create view. Permissions are granted to particular user @ particular host. You must execute

    GRANT CREATE VIEW ON *.* TO 'username'@'host'; 
    

    where host is hostname from where your CREATE VIEW is executed

    Also, user must have SELECT privilages on all tabels and columns involved

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

Sidebar

Related Questions

Im create this code to store page view in database, but i have problem
I have the following little bit of MySQL code CREATE VIEW UserResults AS SELECT
I have the following code to create my window, my view and my sub
I have this code to create a webapp in my server: import web urls
I have my server side code create an event on Facebook, using a Facebook
I have used following code to create a simple PDF file. It executes fine
I have designed a form which was working fine until about an hour ago.
I have created an alert view with two buttons using the following code: UIAlertView
I have code to create a live screenshot of the stage in my swf.
I have a code: CREATE TABLE IF NOT EXISTS Person ( name varchar(24) ...

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.