• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

2 Errors! MySQL Connection and SQL instance not showing.

A

admin0

Guest
Hi,

I am using Plesk 7.5.1 on windows server 2003.


# issue 1

I can go to %plesk_dir$\mysql\bin
and connect to mysql on both ports OK with the admin password.

The phpmyadmin works OK as root and as client also.
Clients are able to create database OK and view via phpmyadmin.

The problem is:

php does not connect to the database. The error that I get is:

Warning: mysql_connect(): Access denied for user 'username'@'localhost' (using password: YES) in C:\Inetpub\vhosts\domain.com\httpdocs\test.php on line 7
Unable to connect to MySQL



<?
$username = "username";
$password = "password";
$hostname = "localhost";
$dbh = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
print "Connected to MySQL<br>";

mysql_close($dbh);
?>

but i can connect OK with the username and password via commmand line

%plesk-dir%\mysql\bin\
mysql -u username -p ENTER
<password>
select db1
show tables;
etc etc ...

# issue 2

There is no ms sql instance shown in the plesk database section of mssql. However, I am able to connect to the database OK, and create/edit and do other things. Its just not showing the instance name in the display when logged in as admin.


The issue #2 is not that much priority now, however, due to mysql issues, none of the php/mysql sites are working.
This is a new server.

Please help

Cheers,
:D
 
$hostname = server name, 127.0.0.1, localhost, <all IP's>, none seem to work
 
Hello,

Then I'm sorry i dont know whats wrong. Normally these are the problems we faced. Anyways try contacting Sw-soft?

Good Luck :D
 
I checked further and found that the permissions on the user table for the user was all set to N .. meaning no permission to do anything was granted.


Using phpmyadmin via admin panel, I changed all N to Y and am able to connect .. Finally!

How do I setup such that any domain whose mysql database is added will have the necessary connect, update etc privledges assigned to them.


Cheers,
 
Back
Top