mysql-connect Questions
7
I'm trying to run PHPUnit to unittest a WordPress plugin, but the error in the title keeps showing up.
I used WP-CLI to setup the unittests, but also WP-CLI throws a similar error when I try to ru...
Calzada asked 27/9, 2015 at 16:0
6
Solved
I have just installed a MySQL server (version 3.23.58) on an old RedHat7. I cannot install a more recent MySQL version because of the dependencies. I cannot update librairies on this RedHat server....
Hibbler asked 25/9, 2012 at 14:9
14
Solved
I have ran aptitude install php5-mysql (and restarted MySQL/Apache 2), but I am still getting this error:
Fatal error: Call to undefined function mysql_connect() in /home/validate.php on l...
Glim asked 11/12, 2012 at 17:12
2
I'm using mysql-server 5.5 and had created a server instance. After created I try to open the instance editor and select Options File in CONFIGURATION but it says
Configuration file '' can not ...
Joellyn asked 9/7, 2015 at 4:35
5
Solved
If I have a script which inserts data then exits,
the script will be opened by 100 users at the same time or within 2 mins.
(Actually I'm doing email tracking.)
So pconnect is better, or connect ...
Clotilde asked 14/3, 2010 at 4:54
4
Solved
I am attempting to connect to a remote MySQL server from my local machine virtualhost using the following code:
$conn = mysql_connect("$dbhost", "$dbuser", "$dbpass") or die(mysql_error());
mysql...
Tai asked 20/12, 2009 at 9:2
5
I've been using the same DB abstraction library for years. But today it started writing these Notice (8) messages in my log.
The application is working correctly but every time a script connects t...
Glairy asked 12/12, 2009 at 18:37
5
Solved
I have this doubt, I've searched the web and the answers seem to be diversified. Is it better to use mysql_pconnect over mysql_connect when connecting to a database via PHP? I read that pconn...
Byline asked 29/10, 2008 at 18:6
2
Solved
I've been at this for more than an hour now, I can connect to my database and all (doesn't give any errors) but i get the following error when i try to use
"mysql_query($query);"
Call to und...
Casserole asked 26/1, 2016 at 23:15
1
Which is the latest version PHP version, who support mysql_connect()?
I've want to upgrade my PHP version. I've read, that mysql_connect() are deprecated. In all Projects I've use the old my...
Liggitt asked 28/1, 2015 at 20:57
2
Solved
I'm starter.
I want to know what will happen if we don't close the MySQL connection.
1- Is it possible to open more than one database if we don't close them? I mean can we open more than one data...
Valgus asked 15/10, 2013 at 5:20
2
Solved
I am using Windows 7, Apache 2, PHP 5, MySQL 5, all are on the same machine.
I have found an interesting issue, I have the following code:
$sql = "select * from user1";
$conn = mysql_connect("lo...
Foreandaft asked 26/7, 2012 at 6:46
2
Solved
I want to know what is the best practice or what is recommended to do when a variables are created for MySQL credentials/host.
define('HOST', 'localhost');
// etc..
mysql_connect(HOST, // etc.....
Rixdollar asked 18/10, 2011 at 23:37
4
Solved
I have this code snippet:
$conn = mysql_connect($host, $usr, $pwd);
How can I prevent PHP from printing an error message when MySQL access is denied?
I need exactly this syntax but nothing work...
Trudietrudnak asked 20/9, 2011 at 12:39
4
Solved
When I run $conn = mysql_connect($host, $user, $pass); I am able to get a connection to the database but when i do a var_dump($conn) I get back bool(true) which is limiting me from having mul...
Easing asked 26/1, 2011 at 16:28
1
© 2022 - 2024 — McMap. All rights reserved.