Results 1 to 6 of 6

Thread: Mysql permisiong problem.

  1. #1
    Join Date
    Apr 2008
    Location
    Little Office!
    Posts
    80
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default Mysql permisiong problem.

    I am using Joomla and a script within it.

    That Script is suppose to copy tables from one DB to another.

    Code:
    Error(1) [1142] query [CREATE OR REPLACE VIEW test_users AS SELECT * FROM `localiz_master`.`jos_users`]. DB Error: CREATE VIEW command denied to user 'localiz_master'@'localhost' for table 'test_users' SQL=CREATE OR REPLACE VIEW test_users AS SELECT * FROM `localiz_master`.`jos_users`
    
    
    Error [1142] retrying query [CREATE OR REPLACE VIEW test_users AS SELECT * FROM `localiz_master`.`jos_users`]. DB Error: CREATE VIEW command denied to user 'localiz_master'@'localhost' for table 'test_users' SQL=CREATE OR REPLACE VIEW test_users AS SELECT * FROM `localiz_master`.`jos_users`
    localiz_master: name of the DB from which data is suppose to be copied.
    jos_users: name of the table form the main DB.
    localiz_master: user for the DB.
    localhost: host
    test_users: name of the table to be created.

    we do have phpmyadmin but the user's table is hidden. can someone please tell us the SSH command we might run to make localiz_master user have access to all the databases.

    thanks in advance DD. you have been great helping me out of problems!

  2. #2
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default

    I do not have joomla and may not be able to help much here. Here are a few important questions though: What is the code that you are using to access your database? Are you sure that you are using the correct DB name and user name and password, etc? Did you used to have access to your database and now do not or is this a new database? What do you mean you do not have access to the table in phpmyadmin? That seems a bit unusual.

    There are also ways around this as well. You can export your database tables via phpmyadmin or you can write a php script to do what you are proposing.

    The most likely problem is that either your username or password for accessing the database is incorrect. Look into these and see if they are correct. I tried recreating your problem and when the username or password were incorrect I got nearly the same error.
    Last edited by james438; 06-13-2010 at 08:43 PM. Reason: placed the answer in quotes. Added minor clarification.
    To choose the lesser of two evils is still to choose evil. My personal site

  3. #3
    Join Date
    Apr 2008
    Location
    Little Office!
    Posts
    80
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    James,

    script is designed in such a way... so that if the username password is incorrect... it should give another error.

    but in this one it's giving the permissions.

    well, in any manner the question is same... how can i grant permissions for mysql users via ssh.

  4. #4
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default

    sorry, beyond those questions I asked and the possible solution I proposed I can't help you further as I do not have ssh or joomla and am unfamiliar with them. I hope someone else will be able to provide a better answer.
    To choose the lesser of two evils is still to choose evil. My personal site

  5. #5
    Join Date
    Jun 2010
    Location
    UK
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi, nice to meet you guys!!

  6. #6
    Join Date
    Apr 2008
    Location
    Little Office!
    Posts
    80
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    ALRIGHT... GUYS here is the info: http://www.linuxquestions.org/questi...01#post4002901

    but i still love DD more than any forum.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •