Support » Plugin: Skedmaker » Access denied for user ''@'localhost' (using password: NO)

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author theArab

    (@thearab)

    It looks like you have not entered the correct database info.

    I’m getting this same error. There is no where that I can find in the plugin files to enter database info. And obviously the database info is correct for WordPress otherwise we wouldn’t be able to access it.

    Plugin Author theArab

    (@thearab)

    The Skedmaker plugin uses all the info you entered when you setup WP.
    What version of WordPress are you using?
    What version of PHP are you using?

    I also found this while searching online for a reason why this may be occuring–

    “Usually happens when your DB connection is not working properly (often due to database being temporarily down or DB tables needing repair/optimization)”

    It may also be that one of your themes or other plugins is conflicting with it…

    Try switching to the original WP theme and see if it works.
    Try deactivating all your plugins and run the Skedmaker plugin only.
    Then switch your plugins on one by one until you find the one that is conflicting.

    Same issue being faced.

    wp-config.php has user as wordpress

    define('DB_NAME', 'wordpress');
    define('DB_USER', 'wordpress');
    define('DB_PASSWORD', 'password');

    However after activating the plugin and clicking on menu from admin I get
    Access denied for user 'root'@'localhost' (using password: NO)

    Why is it taking or where is it picking up root from ?

    PHP version 5.5.9
    Wordpress version 4.2.2
    MySQL version 5.5.38

    Plugin Author theArab

    (@thearab)

    Skedmaker uses the info that is saved in wp-config.php.
    I’m not 100% sure, but I think the values you have in there are the defaults from when the file is originally downloaded from the WordPress site.
    I think “localhost” is a default setting as well.

    Issue is with changes in wordpress. They have added $wpdb which will be used to access the mysql, instead of mysql_query.

    I did the following steps to migrate:

    find . -type f -exec sed -i 's/<?php/<?php global $wpdb;/g' {} +
     find . -type f -exec sed -i 's/mysql_query("SELECT/$wpdb->get_results("SELECT/g' {} +
     find . -type f -exec sed -i 's/mysql_query/$wpdb->query/g' {} +
     find . -type f -exec sed -i 's/mysql_num_rows/$wpdb->num_rows;\/\//g' {} +

    For mysql_fetch_array we need to take each function, change it using $wpdb->get_results and the use foreach instead of while.
    Also, add a param ARRAY_A to $wpdb->get_results to create an array instead of object access notation.

    Plugin Author theArab

    (@thearab)

    Thanks very much for sharing this.
    Did this work for you?
    I wonder why the plugin works fine for me and plenty of others, but for some it does not.
    I have updated to the most recent version of WP, and have had no issues with the plugin on my site.
    I’m also curious… did you make all these changes in every file?
    Or just one specific WordPress file?
    There are quite a large number of mysql functions in the code for the plugin.
    Honestly, it gives me a headache to think about having to go through and make all these changes! Will need a extra large pot of coffee. haha!

    I just installed it 3 time

    1]good host mlti site failed

    Warning: mysql_query(): Access denied for user ”@’localhost’ (using password: NO) in /home/c22/public_html/multi/wp-content/plugins/skedmaker-online-scheduling/_include/sm-build-db.php on line 3

    Warning: mysql_query(): A link to the server could not be established in /home/c22/public_html/multi/wp-content/plugins/skedmaker-online-scheduling/_include/sm-build-db.php on line 3

    Warning: mysql_query(): Access denied for user ”@’localhost’ (using password: NO) in /home/c22/public_html/multi/wp-content/plugins/skedmaker-online-scheduling/_include/sm-build-db.php on line 36

    Warning: mysql_query(): A link to the server could not be established in /home/c22/public_html/multi/wp-content/plugins/skedmaker-online-scheduling/_include/sm-build-db.php on line 36
    Access denied for user ”@’localhost’ (using password: NO)

    2]good different host single site failed with this topics error

    3] very good free host [byethost] installed and workng no problem

    Plugin Author theArab

    (@thearab)

    WordPress changed their database access. See the post by “innoappz” on this thread. I’m working on changing over the code.

    Any updates yet? I see we’re still on 0.96 and I’ve received this error as well.

    Where should I add innoappz’s code?

    Plugin Author theArab

    (@thearab)

    I’m working on an update that will resolve the database connection issue with WordPress’ new connection functions. I will have it available today.

    Plugin Author theArab

    (@thearab)

    Update the plugin to version .97. This will fix the connection issues.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Access denied for user ''@'localhost' (using password: NO)’ is closed to new replies.