Cannot access mysql database through PHP

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Cannot access mysql database through PHP

Postby muddi900 » 25. May 2011 08:52

This is the error I get when I try to update my database through PHP...

Code: Select all
Warning: mysqli::mysqli() [mysqli.mysqli]: MySQL server has gone away in /opt/lampp/htdocs/projects/billform/submitDB.php on line 26

Warning: mysqli::mysqli() [mysqli.mysqli]: Error while reading greeting packet. PID=4361 in /opt/lampp/htdocs/projects/billform/submitDB.php on line 26

Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2006): MySQL server has gone away in /opt/lampp/htdocs/projects/billform/submitDB.php on line 26


and this is my mysqlaccess.conf...
Code: Select all
# ------------------------------------------------------------------------- #
# MySQLaccess version 2.0p2                                                 #
# (c) Yves.Carlier@rug.ac.be, 1997                                          #
#                                                                           #
#          *** Configuration file ***                                       #
#                                                                           #
#     -Default values read by mysqlaccess during initialisation.            #
#      This file is looked for in                                           #
#      1) the current directory                                             #
#      2) /etc/                                                             #
#     -Options given on the command-line override the values given in here  #
#     -Given options can't be overruled by empty/blanc options!!            #
# ------------------------------------------------------------------------- #


# ----------------#
# Global settings #
# --------------- #
  #$Param{'host'}     = '';
  $Param{'user'}     = 'nobody';
  $Param{'db'}       = 'test';
  $Param{'password'} = 'foobar';
  $Param{'debug'}    = 0;

# --------------------------#
# Settings for Command-line #
# ------------------------- #
if ($CMD) {
  $Param{'superuser'} = 'root';
  $Param{'rhost'}     = 'localhost:2139';
  $Param{'spassword'} = '';
  $Param{'brief'}     = 1;
}

# ---------------------#
# Settings for CGI-BIN #
# -------------------- #
if ($CGI) {
  $Param{'superuser'}  = 'root';
  $Param{'rhost'}      = 'localhost:2139';
  $Param{'spassword'}  = '';
  $Param{'table'}      = 1;
}

1;  #to make require happy
muddi900
 
Posts: 2
Joined: 25. May 2011 08:41

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests