Jump to content

Mt-load.cgi Trouble


tmwright
 Share

Recommended Posts

I followed the installation instructions posted at http://www.totalchoicehosting.com/help/id76.htm

 

and I'm getting the following error when running the mt-load.cgi:

 

"Bad ObjectDriver config: Your DataSource directory ('./db') does not exist."

 

I setup a mySQL database and username according to the instructions and it seems that everything is correct there. I do not, however, see a /db directory anywhere.

 

As per the instructions, I left the following line alone in the mt.cfg file:

"DataSource ./db"

 

Should this actually say something else? Any help will be greatly appreciated.

Link to comment
Share on other sites

Did you add the three lines that tell it to use a mysql database?

 

ObjectDriver DBI::mysql

Database hostingAccountUserName_nameOfDatabase

DBUser hostingAccountUserName_nameOfDatabaseUser

 

? Make sure there is no # before those lines.

Okay... That was pretty dorky. I had failed to uncomment the lines you mentioned. Things went just fine after making the correction. Thanks.

Link to comment
Share on other sites

  • 1 year later...
:) Welcome to the Family tmwright :)

 

and your new home!

Don't be a stranger

 

We really are like family here.

So if you need anything,

just ask your new family!

We love to help :)

 

 

Another question about movable type: To initialize it tells me to run mt-load.cgi and then delete it. There is no mt-load.cgi present. However, in researching it appears that they somehow incorporated this into the mt.cgi file somehow, but I'm not sure how to continue with the installation (fyi I'm brand new to movable type as if that wasn't already painfully obvious).

Link to comment
Share on other sites

Welcome to the forums :)

 

From the MT site

Note to previous users: Prior to Movable Type 3.2 users had to run a script named mt-load.cgi right after installing the system in order to create the necessary data tables and populate them with a sample weblog and an initial user. This step is no longer necessary.

I assume you have uploaded it, changed the permissions on the directories, so the next step is

 

www.example.com/cgi-bin/mt/mt.cgi

 

where example.com is your domain name (and this assumes you have installed in the default directory.

Link to comment
Share on other sites

  • 2 months later...

Please, if someone could help me.

 

I am not reaching the database, it appears that for some reason it is not holding all of the letters in the username.

 

I get this error message:

 

Got an error: Bad ObjectDriver config: Connection error: Access denied for user 'database-*******'@'localhost' (using password: YES)

 

Where I have put the stars is the user name. The user name for the database has 7 letters instead of 6, it is correct in the mt-config file but its still giving me the error above. The error only shows 6 letters instead of 7 in the user name

Edited by LindaSoG
Link to comment
Share on other sites

Welcome to the forum, Linda. :naughty:

 

According to this page it looks like it may be a permission problem.

 

Thanks for the welcome.

 

That's not the problem. All the .cgi permissions are set at 755.

 

This is not the first time I am installing movable, I've installed three blogs on another server without a problem. I am in the process of moving all three here and this is the first one.

 

The last I heard from the help desk was to unistall and reinstall the database and movable because the database was corrupt.

 

I have installed, uninstalled, reinstalled and unstalled all over again and my frustration level is reaching its peak.

 

I have been working on this since 6am and getting nowhere. Any help you can give me will be greatly appreciated.

 

Just to be clear, in case I am not:

 

the username given to me by TCH has eight letters. The name of the database has eight letters. The error I am getting seems to indicate that the database it is looking for only has 6 letters. The user name is correct with all eight letters in the mt-config file.

 

this is error exactly, with only the letters changed to numbers:

 

Got an error: Bad ObjectDriver config: Connection error: Access denied for user 'database-1234567'@'localhost' (using password: YES)

Edited by LindaSoG
Link to comment
Share on other sites

Better instructions for you to double check from my good friend Don.

 

Be sure that in MySql you

 

1 - created the database

2 - created a user

3 -added the user to the database (go back to MySql and find the Add user

select the user and database, and then Add user to database)

 

 

Then to connect to the database in a script use:

 

host: localhost

database: yourCpanelName_databaseName

user: yourCpanelName_databaseUser

password: mypassword

 

* Note password is just as the password,

do not add the CpanelName to it.

Link to comment
Share on other sites

In your mt-comfig does it reflect;

 

cPanel-name_username

cPanel-name_database-name and

password, no "cPanel-name_" in front

 

Note the "_"

 

This is the code exactly, except I changed the user name and password to 12345678 and 123456 respectively:

 

ObjectDriver DBI::mysql

Database database-12345678_move

DBUser database-12345678_ls

DBPassword database-123456

DBHost localhost

Link to comment
Share on other sites

Welcome to the forums :naughty:

 

Is the "database-" on the front of what you've just written here? Or also on the one in your config? That shouldn't be there in your config.

 

without it, like this:

 

ObjectDriver DBI::mysql

Database 12345678_move

DBUser 12345678_ls

DBPassword 123456

DBHost localhost

 

I get a completely blank page when I try to load the mt.cgi file

Edited by LindaSoG
Link to comment
Share on other sites

As Rob said;

Be sure that in MySql you

 

1 - created the database

2 - created a user

3 -added the user to the database (go back to MySql and find the Add user

select the user and database, and then Add user to database)

 

I don't think you have been into your cpanel and created the database yet, and then added the user.

Link to comment
Share on other sites

As Rob said;

I don't think you have been into your cpanel and created the database yet, and then added the user.

Indeed I did. This is a cut and paste from the database page:

 

MySQL Account Maintenance

 

 

Databases: 12345678_move

Users in move

12345678_ls (Privileges: ALL PRIVILEGES)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...