Chikwado Posted June 24, 2015 Share Posted June 24, 2015 (edited) Mysql procedural "CREATE DATABASE" not working, I have written the code exactly the way it appear in the tutorial. But it return error insted of creating the database. I am using xampp version: 5.6.3, Some one help. Edited June 30, 2015 by Chikwado Link to comment Share on other sites More sharing options...
justsomeguy Posted June 24, 2015 Share Posted June 24, 2015 What error? Does your MySQL user have permission to create a database? Link to comment Share on other sites More sharing options...
Chikwado Posted June 24, 2015 Author Share Posted June 24, 2015 (edited) I just do not know that setting, I need advise on how to set that permission. More help <?php echo ""; ?> Edited June 30, 2015 by Chikwado Link to comment Share on other sites More sharing options...
thescientist Posted June 24, 2015 Share Posted June 24, 2015 you still need to tell us the error though Link to comment Share on other sites More sharing options...
justsomeguy Posted June 24, 2015 Share Posted June 24, 2015 All of that information is already online in the MySQL manual. Instead of me looking that up and linking you to it, or copying and pasting the information, just look it up yourself. You don't need to wait for answers that are already online. Link to comment Share on other sites More sharing options...
Chikwado Posted June 24, 2015 Author Share Posted June 24, 2015 Yes, I have seen it. Thanks a lot. Link to comment Share on other sites More sharing options...
Chikwado Posted June 25, 2015 Author Share Posted June 25, 2015 Some one take a more look at this syntax: I used the following syntax to create a user, but it return error. CREATE USER 'user'@'localhost' IDENTIFIED BY ' ***** '; To grant user: GRANT ALL PRIVILEGES ON * . * TO 'localhost'; I got the following error: 'CREATE' is not recognized as an internal or external command, some one check it. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 25, 2015 Share Posted June 25, 2015 Are you just typing that into a shell prompt? That looks like a Windows error message. You run queries on MySQL, not Windows. Link to comment Share on other sites More sharing options...
thescientist Posted June 25, 2015 Share Posted June 25, 2015 did you mean to connect to the mysql server first before trying to run those commands at the prompt? what happens when you try and run them in PHPMyAdmin or similar tool? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now