Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Mysql_Connect

forums forums SQLyog Using SQLyog Mysql_Connect

  • This topic is empty.
Viewing 3 reply threads
  • Author
    Posts
    • #12277
      southcot
      Member

      Ok using IPAddress, UserName and Password (where the MySQL user is set as UserName@%) I can connect to a MySQL DB using my SQLyog.

      However running:-

      $res = mysql_connect('IPAddress','UserName','Password') or die($strings[“error_server”]);

      in PHP on the same machine it fails to connect: I'm tearing my hair out what can be the difference?

      I have other DBs that aren't exhibiting this behaviour on the same MySQL server and the only difference is that they are not UTF8 is that the issue?

    • #32048
      peterlaursen
      Participant

      Since SQLyog works as expected (and PHP does not) I think this question should rather go to some PHP Forum.

      But what is the exact error you get with the PHP script?

    • #32049
      southcot
      Member

      Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'xxxxxxxxx'@'xxxxxxxxxxxxxx' (using password: YES)

      But if I change the username and password and switch to another DB on that server then it connects.

    • #32050
      southcot
      Member

      I have posted this on a php/MySQL forum.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.