Support » Installing WordPress » Communicate with MySQL via Socket?

  • Resolved brandieg

    (@brandieg)


    I too am getting the “Error esttablishing database onnection” message.
    I have successfully set up phpMyAdmin in a phpMyAdmin subdirectory of my root www direstory. I uploaded the unzipped WordPress files to that root directory. The other subdirectory established for mysql is www-data.

    The working phpMyAdmin config file has the following $cfg[‘Servers’][$i] commands:
    [‘host’] = ‘localhost’;
    [extension’] = ‘mysql’;
    [‘port’] = ‘3365’;
    [‘socket’] = ‘/home/users/…/www-data/tmp/mysql.sock’;
    [‘connect_type’] = ‘socket’;
    [‘compress’] = false;
    [‘auth_type’] = ‘config’;
    [‘user’] = ‘root’;
    [‘password’] = ‘myPW’;

    I used phpMyAdmin to create a WordPress database and it created an empty WordPress subdirectory under www-data.

    In my wp-config file I specified
    ‘DB_NAME’, ‘WordPress’
    ‘DB_USER’, ‘root’
    ‘DB_PASSWORD’, ‘myPW’
    ‘DB_HOST’, ‘localhost:3365’

    What else do I need to get WP to talk to mysql via this socket (it is how my university configures its web server)?
    Should I have uploaded WP to the www-data folder rather than my root folder?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Communicate with MySQL via Socket?’ is closed to new replies.