Parse error: syntax error on multi-db?

I’m doing a test install of the multi-db plugin and keep on getting this:

Parse error: syntax error, unexpected ‘,’ in /home/thatmlmb/public_html/mu/wp-content/db-config.php on line 44

if I comment it out, I also get it on lines 47 – 62 with the add_db_server, so I’ve configured something wrong, but not sure what.

Here’s my code:

1,’global.mysql.mysite.com:2082′,’global.mysql.mysite.lan:2082′, ‘global-db’, ‘thatmlmb_user’, ‘password’:wink:;

add_db_server(‘global’, ‘dc1′, 1, 1,’174.132.193.158’, ‘thatmlmb_global’, ‘thatmlmb_user’, ‘password’:wink:;

I’m thinking the problem is with thatmlmb_global’, but not sure what the global-db should be?

then…

add_db_server(’0?, ‘dc1?, 1, 1,’174.122.193.158?, ‘wp_0?, ‘thatmlmb_user’, ‘password’);

Any idea what I’m missing or doing wrong?

Thanks,

George

  • Andrew
    • Champion of Loops

    Hiya,

    add_db_server(’0?, ‘dc1?, 1, 1,’174.122.193.158?, ‘wp_0?, ‘thatmlmb_user’, ‘password’);

    Something is up with some characters. It should look like this:

    add_db_server(‘0’, ‘dc1′, 1, 1,’174.122.193.158’, ‘wp_0’, ‘thatmlmb_user’, ‘password’:wink:;

    Be sure to take a look at the example db-config.php files.

    Thanks,

    Andrew

  • drmike
    • DEV MAN’s Mascot

    Please note the question marks with the line Andrew copy and pasted. Looks like the file was created/edited within an editor that doesn’t handle UTF8 files correctly. Also note the slanted single quote marks from the same line within your post.

    What are you using as an editor to edit those files?