Hello people. I have a mysql and php installed in my computer. I also happened to have a phpbb which I installed recently. My problem is, when I configured it, it generates these kinds of errors.

Warning: mysql_connect(): Unknown MySQL Server Host 'windsn' (11004) in c:\php\phpbb2\db\mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in c:\php\phpbb2\db\mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in c:\php\phpbb2\db\mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database
anybody can help me please. Thank you very much.

    Hi,

    you need to configure phpbb and tell it the hostname and credentials (user/password) of the MySQL server you want to use with phpbb. In this case you might try to use localhost as hostname.

    Thomas

      Yeah I tried Localhosting but I got these problem instead:

      Warning: mysql_connect(): Access denied for user: 'makoy@localhost' (Using password: YES) in c:\php\phpbb2\db\mysql4.php on line 48

      Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in c:\php\phpbb2\db\mysql4.php on line 330

      Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in c:\php\phpbb2\db\mysql4.php on line 331
      phpBB : Critical Error

      Could not connect to the database

      what should I do tsinka? I am confused at line 48.

        Hi,

        did you create a entry in the table user (database mysql) with a username of makoy and the given password ?

        If yes, you might need to connect to the database as user root and execute

        FLUSH PRIVILEGES

        to activate any changes in mysql.user

        Thomas

          I'm sorry I don't know how to do that. all I know is that I put a username and pass before finishing the installation. That's the only thing that I did. I'm really sorry for bothering you tsinka. I'm just new in mysql. Would you mind telling me how to do it?

            ok,

            you installed MySQL so just to test use root as user and an empty string as password since that are the default credentials of a fresh MySQL install.

            The better solution would be to at least change the password of the user root but for the beginning it should work.

            I'd suggest to install phpMyAdmin

            This will make it easier to work directly on the MySQL server. Just download the latest version and copy the contents to a subdirectory to DOCUMENT_ROOT (e.g. htdocs, where the other PHP scripts are). You might need to modify config.inc.php in order to successfully use phpMyAdmin.

            phpMyAdmin might look complicated at the beginning but once you get used to it you don't want to miss it.

            Thomas

              I got phpmyadmin installed but when I clicked on the database field it displays these kind of error:

              Error
              The additional Features for working with linked Tables have been
              deactivated. To find out why click here

                Write a Reply...