answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What happen if you close mysql connection before query?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you close a MySQL database connection using PHP?

To close your MySQL database connection you need to use the mysql_close() function. Please see the example below: <?php mysql_close(); ?> If your connection data is stored in a variable you would close the connection like this instead: <?php mysql_close($db_conn); ?> That's useful for if you're using more than one database connection in a PHP script.


What is the difference between mysql connect and mysql pconnect in PHP?

The difference between connect() and pconnect, it is simply like a shop when u entering in shop you will open the door and take your iteam come out and close the door that is called connect() in mysql the connection to the mysql database will be automatically closed when the script terminates. when the door of the shop is already opend and never close it is called pconnect(), open a connection with mysql_pconnect(), the connection will not be closed and will "persist" for future use.


What is mysql latest version?

The current latest stable version of MySQL is 8.0. You can check your MySQL version with dbForge Studio for MySQL by following this few steps: in the Database Connection Properties window enter connection settings click Test Connection.


Which mysql product is suitable for php connection?

mysql client library


What is offered by MySQL Connect?

Connection to MySQL Using PHP Script To open a database connection, PHP provides the mysqli construct or the mysqli connect() function. On success, this method returns a MySQL link identification; on failure, it returns FALSE. To learn more about data science please visit- Learnbay.co


How do you connect to mysql using vb6?

Install the MyODBC database connector.Set up an new ODBC connection to your mysql database in Windows. (This will vary based on your version of Windows)You can use the ADODB extension in VB to connect to your ODBC connection.


How do you include mysql header file in to turbo C to make connection?

Standard C does not provide such a function; it does not even require you to have an internet connection.


What is the latest version of MySQL?

The latest versions of MySQL are:Stable:MySQL 5: version 5.1.48 (2 June 2010)Preview Release:MySQL 5: version 5.5.4 (9 April 2010)


What is connection in database?

Connection is the process of linking your website or web application to the mysql database. So it cannot be a data within the database. The login & password or Signup details can be part of the database but not the connection.


How to you connect in mysql database?

Use the following code to connect to your mysql database from the php file. variables are hostname, db_username, db_password - see the code below for the exact connection example. <?php mysql_connect("localhost", "admin", "1admin") or die(mysql_error()); echo "Connected to MySQL<br />"; ?>


I have installed MySql server and SQL Maestro for MySql.If i create a new database in mysql maestroit gives Sql access denied for rootlocalhost passwordno.how do i make a connection bween that.?

connect it using a cable line


How do you create a MySQL database on the server?

Here is how you establish connection to mysql server & create a database in mysql <?php // Note that username, client host & passwords may vary $host = "localhost"; $user = "root"; $password = ""; $con = mysql_connect($host,$user,$password); if(!$con) { // Warns for connection failure die("Failure in establishing connection: ".mysql_error()); } $db = "CREATE DATABASE employees"; // Use any name for database $create = mysql_query($db, $con); if(!$create) { echo "Error creating database: ".mysql_error(); } ?>