[TYPO3-english] No database selected with correct credential

Joydeep Bakshi joydeep.bakshi at infoservices.in
Fri Apr 5 10:58:37 CEST 2013


many many thanks.
the links and examples have helped me  to fix the issue.

great , thanks ..


On 05-Apr-2013, at 1:52 PM, bernd wilke <t3ng at bernd-wilke.net> wrote:

> Am 05.04.2013 08:33, schrieb Joydeep Bakshi:
>> typo3 4.7.10
>> 
>> Please suggest how to fix the issue
>> 
>> Thanks
>> 
> you need to analyse what went wrong.
> therefore you might enable all debug/error-output like [1]
> 
> the other way: write a small php-test programm to connect:
> 
> <?php
> $link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
> if (!$link) {
>    die('Not connected : ' . mysql_error());
> }
> 
> // make foo the current db
> $db_selected = mysql_select_db('foo', $link);
> if (!$db_selected) {
>    die ('Can\'t use foo : ' . mysql_error());
> }
> ?>
> 
> or step 2:
> 
> <?php
> include_once('typo3conf/localconf.php')
> 
> $link = mysql_connect($typo_db_host , $typo_db_username , $typo_db_password );
> if (!$link) {
>    die('Not connected : ' . mysql_error());
> }
> 
> // make foo the current db
> $db_selected = mysql_select_db($typo_db , $link);
> if (!$db_selected) {
>    die ('Can\'t use "'.$typo_db .'" : ' . mysql_error());
> }
> ?>
> 
> 
> [1] http://pi-phi.de/291.html
> 
> 
> bernd
> -- 
> http://www.pi-phi.de/cheatsheet.html
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list