hi

I want to install manually drupal 4.7.4 on share hosting account

already set up new mysql database and uploaded the files to the folder on the server

the readme file is not clear about what to do in share hosting

what to do next?
thank you

Comments

- load the Drupal database schema (see "INSTALL.mysql.txt")
- edit "sites/default/settings.php" (line $db_url = "mysql://username:password@localhost/databasename";)
- go to your site url and create the first account

That's all

Like with other types of hosting accounts, you take the three pieces of information from your database setup:

  • username
  • password
  • name of the database

and enter these in the line: $db_url = 'mysql://username:password@localhost/databasename'; of settings.php, which you can find in the sites/default/ directory of your Drupal installation.

Usually, you can leave 'localhost' as the host name but some shared hosting like with GoDaddy use something like 'mysql236.secureserver.net'. Some shared hosting also create the same name for both username and database name.

I will try it ;-)

after chaning the file details, uploading the files to the server and running the mysql quary

this is what I get
Unsupported database type

The database type is unsupported. Please use either mysql for MySQL 3.x & 4.0.x databases, mysqli for MySQL 4.1.x+ databases, or pgsql for PostgreSQL databases. The database information is in your settings.php file.

For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

this is my hosting details
PHP version 4.4.3
MySQL version 4.1.21-standard

and this is the file name I am using for the database
database.4.1.mysql

what is wrong and what to do?

thank you

You seem to be loading the right Drupal database schema (database.4.1.mysql) for the version of MySQL that you are using. I'm not sure what's wrong either but based on the error message you included above, it seems to say that you need to use 'mysqli' as your database type in settings.php like this: $db_url = "mysqli://username:password@localhost/databasename"; My web hosting uses MySQL 4.1.21-standard-log too but I didn't have to use 'mysqli' in settings.php. You might want to try anyway and see what happens.

now everything is working ;-)

Hey I have a question for you.

Due to http://drupal.org/node/20397, why did you not have to use MySQLi ??

I have a very similar 4.7.4 setup as you, but my Drupal site logs me out automatically due to a mysql issue with PHP when using MySQL 4.1 and higher.

Do you not get this issue discussed at the above URL? I do and my hosting provider can't cough up the mysqli driver for PHP (as of yet), so I am curious how you got around this.

Thanks,

Emilio

Emilio

Hi
Reading this I get the same error on my Ubuntu dev box.

I can see the DB has been built and populated.

*************************************************
The database type is unsupported. Please use either mysql for MySQL 3.x & 4.0.x databases, mysqli for MySQL 4.1.x+ databases, or pgsql for PostgreSQL databases. The database information is in your settings.php file.

For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
************************************************

I have changed settings php to include mysqli still same error. ( is it possible it's a cache thing with the browser?)

here is my settings.php db url

I created a new user drupal + pw on my localhost

***************************

$db_url ='mysqli://drupal:*******@localhost/rokpadata';
$db_prefix='';
****************************

Any ideas?

Cheers
Bob