Ubuntu :: Can't Connect PHP To MySQL In Kubuntu
Mar 9, 2011
I'm trying to run php scripts on Kubuntu 10.04 that connect to a MySQL database. These scripts run perfectly on OS X 10.6.6, but when I run them in Kubuntu, I get the following error: The script...
[Code]...
The error message: "Fatal error: Call to undefined function mysql_connect() in..." I've seen some posts in other boards about Red Hat problems like this, but nothing that can help with Kubuntu.
View 4 Replies
ADVERTISEMENT
Jun 7, 2011
I think this goes here, but I'm not sure. I decided that XAMPP had been troublesome enough. MySQL never worked. So I decided to instal the LAMP stack offered by YaST. I went about installing it thinking that it would all work. But it seems that I was wrong. So I try to start mysql, and here's what I get:
Code:
the-matrix:~ # mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) or
Code:
the-matrix:~ # rcmysql start
Starting service MySQL warning: /var/mysql/mysql.sock didn't appear within 30 seconds
chmod: cannot access `/var/run/mysql/mysqld.pid': No such file or directory
[Code]...
View 6 Replies
View Related
Jun 2, 2010
i am using liferay5.2(mysql included in the download pack) on fedora. while liferay is working fine but i cannot connect to mysql.i am getting the error
[
[root@localhost ~]# ln -s /var/lib/mysql/mysql.sock /tmp
[root@localhost ~]# /etc/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.
[code]....
i didnt find the mysql.sock file in the location /var/lib/mysql/mysql.sock. i cannot find the portal-ext.properties file also to make intial settings.
View 9 Replies
View Related
Aug 25, 2010
I'm having problems connecting to the mysql database on my system. I first noticed this when I was trying to set up the program anymeal. I subsequently tried using MySQL Administrator (mysql-admin), but had no luck. It gives my the following feedback:
Code:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Click the 'Ping' button to see if there is a networking problem. I press the ping button, and it seems to connect.
Code:
View 4 Replies
View Related
Dec 6, 2010
I've downloaded and installed MySQL-client-5.1.53-1.glibc23.x86_64.rpm. I'm rather new to linux so it might be I haven't started the server. Unfortunately I have no idea which file is responsible for that. It is also possible that my head isn't functioning correctly ( if at all ).
Error I receive is:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
View 6 Replies
View Related
Feb 22, 2011
I've been attempting to set up a LAMP for local web development, which meant installing mysql-server. But now have a problem when trying to run mysql, I get:-
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
When trying to downgrade mysql-server I saw that there are dependency problems between the various modules (but can't recall which). But whichever route I truied the results are always the same.
Thought about trying XAMPP but I note that even has it's problems, is there any way I can get a lamp set up on FC14, or must I give it up as a bad job.
Howver, just been trying to again to fix the problems with downgrading mysql and get:-
Error: Package: mysql-server-5.1.55-1.fc14.i686 (@updates)
Requires: mysql(x86-32) = 5.1.55-1.fc14
Removing: mysql-5.1.55-1.fc14.i686 (@updates)
mysql(x86-32) = 5.1.55-1.fc14
View 7 Replies
View Related
Nov 12, 2009
I've recently set up a local development webserver using Karmic Koala. I downloaded and installed the server version of Kubuntu and have the web server working.
The problem is that for some reason, I'm no longer able to connect to the internet. I can connect to my router, and other machines in my network can VNC into the server.
I'm using an wired connection to the router and have the server set up on an internal IP of 192.168.0.100. I used to be able to connect to the internet, I downloaded and installed a load of packages etc before it stopped working.
The last thing I remember doing before it stopped working was that I installed Samba so I could share files with the other machines on the network (two Macs running Leopard and a WinXP laptop).
I got the share working - I copied a load of files to the server via the share, rebooted, and for some reason now I can't connect to the net (and other machines can't see the Samba share either.) However I can still VNC into the server.
View 1 Replies
View Related
Mar 15, 2010
I am getting the following error when starting mysql using 'sudo /etc/init.d/mysql start':
Mar 15 16:33:56 MoodFishDev /etc/init.d/mysql[18317]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Mar 15 16:33:56 MoodFishDev /etc/init.d/mysql[18317]: ^G/usr/bin/mysqladmin: connect to
[code]....
View 1 Replies
View Related
Sep 29, 2010
I wrote a code in C to connect to MySQL by using mysql_real_connect function but I recieved error "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)" (by using mysql_error function).
I also did the following things: in mysql I typed 'SHOW VARIABLES LIKE '%SOCKET%'', it returned /var/lib/mysql/mysql.sock I typed 'mysql_config --socket' in shell, it returned /var/lib/mysql/mysql.sock I modified /etc/my.cnf file
View 3 Replies
View Related
Feb 21, 2011
I have recently installed kde and can't find a way to connect to the internet, i have a verizon usb760 modem if it helps.
View 4 Replies
View Related
Jul 20, 2011
I downloaded Evolution last night but I am unable to connect to MS Exchange 2003. Does anyone know of a sure fire way to get connected?
View 1 Replies
View Related
Jul 14, 2010
using kubuntu 9.04 live cd to see how it works but cannot connect to the internet. I've put in the proper WPA passkey and added the ip address along with everything else and still cannot connect.
View 4 Replies
View Related
Jun 16, 2011
I've setup a CentOS apache web server, and loaded a site onto it. The site previously was functioning under windows xp (before I "stepped in") and wamp. What I did was copy the site in /var/www, reconfigure the httpd.conf (DocumentRoot /var/www/site, etc). Although when I try to open the webpage I get this error: Database Error: Unable to connect to the database:The MySQL adapter "mysql" is not available.
[code]...
View 10 Replies
View Related
Aug 2, 2010
Can't connect to FIOS when wired
New to Linux/Ubuntu, I have searched and tried a number of suggested solutions posted here and on other Ubuntu forums. My son received a computer with Xubuntu 9.04 already installed. We first tried a wireless adapter for internet connection, but got no results so I have run a cable directly to the Verizon Router 9100EM, but it connected to [URL] and then disconnected. As I said, I tried a few things and now cannot get even an initial connection.
using ifconfig, this is the result:
eth0 Link encap:Ethernet HWaddr 00:50:ba:d7:6d:70
inet6 addr : fe80::250:baff:fed7:6d70/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Rx packets:32 errors:71 dropped:0 overruns:0 frame:0
[Code]....
View 1 Replies
View Related
Jun 16, 2011
i have BSNL internet connection . I can connect in ubutnu using usb post but not working in kubuntu anymore i think i dont have the drivers for that ! how do i download drivers ? i have xp , and how can i installin kubuntu ??
View 1 Replies
View Related
Mar 11, 2010
How can I connect to a hidden wireless network on Kubuntu? I have 9.10 64bit installed, and have the information for the network (e.g. SSID and key) because I've already connected to it on Windows.
View 3 Replies
View Related
Aug 1, 2010
So, I've managed to install xampp on ubuntu and now I want access mysql through the ubuntu terminal. When I try with:
mysql -u root -p
I get:
the application can be found in the following packages
[code]....
View 5 Replies
View Related
Oct 26, 2010
I am looking for some advice on the best way to connect to a MySQL database on a Ubuntu server via SSH. The application is built using VB6 and is installed on a Windows server.
View 2 Replies
View Related
Dec 22, 2010
I am in the process of installing a genome brower on an ubuntu 10.04 (lucid). I achieved to see the browser once. Then, the mysql.sock disappeared and to solve this I tried first, to reboot the server with no results. Then I removed and reinstalled the MySQL server installing mysql-server-5.1. Now, I have a socket and MySQL is running (checked these out) but when I try to see the browser that is what I obtain:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
View 1 Replies
View Related
Jul 24, 2011
I'm using ubuntu 10.04 LTS I install mysql..Code: sudo apt-get install mysql-server.I set up my password and confirm,I type mysql at the terminal and i get this back.
View 1 Replies
View Related
Apr 3, 2010
how to connect mysql server from ubuntu,.
View 3 Replies
View Related
Nov 10, 2010
im in the process of installing LAMP. im presently installing mysql and that's where i got into trouble...
im following the this tutorial [URL]
i tried the following :
Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal:
mysql -u root
and i got this output:
root@konlah-laptop:/home/konlah# mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
obviously my question is why can't i connect to local mysql?
View 4 Replies
View Related
Nov 19, 2010
I've looked everywhere for this (simple) problem, and I can't get this working. I have a mysql server on my LAN which is accessible from within the server.I want to access the mysql server from another computer on the LAN, but it never works.
View 7 Replies
View Related
Dec 24, 2010
i'm in the process of migrating from Drupal 5 to Drupal 6. My main Drupal page won't load. I have been stepping through the index.php Eclipse and XDebug.The error I'm receiving is:"can't connect to local MySQL server through socket '/tmp/mysql.sock'".i think the sock file setting is correct; it matches what the MSQL control panel has.
First question: if my.cnf says the sock file is in /var/run/mysqld, why do I keep getting the error that it can't open /tmp/mysql.sock? How do I tell Drupal to use '/var/run/mysqld/mysqld.sock'?
Second question: the mysql command-line interface (i.e., after i have logged into mysql from the terminal) doesn't mention a port from the listing obtained by entering 's'. is it possible that 3306 is a mistake? (I have tried commenting out the port reference and i still get the error identified at the top of the thread.)
does anyone have any ideas about how to resolve the 'sock' error? Many thanks if you do. Merry Christmas, too.
View 9 Replies
View Related
Feb 16, 2011
But now I have task of connecting mysql and tomcat. I dont have any idea on this. However I looked some manuals but did not find any luck. how to connect mysql with tomcat. btw I have downloaded mysql connector and copied the .jar file to $CATALINA_HOME/lib
View 4 Replies
View Related
Mar 8, 2011
My problem is that for some reason I can't connect to my MySQL on my server.I know it's not the script, other than the information that I'm using to connect.The MySQL server is set to "localhost" so I set the host in my php script to "localhost".I check for the username and they say I should try "root" so I set the username to "root".Then I put in my root password.When I go to where my php script actually starts, it gives me the error saying that I cannot connect. I know the rest of the script works and the error refers to the info I'm using to go in
View 9 Replies
View Related
Mar 15, 2011
I have a webhost payed and i want to connect it with my server database. It shows me this error on the website : Lost connection to MySQL server at 'reading initial communication packet', system error: 110
I tryed to open port 22...noone of sollution work to me.or someone who's good on that???
View 6 Replies
View Related
Apr 26, 2010
We just set up a new Fedora 12 server. It can't connect from PHP....we're really stumped. Here's what we did to troubleshoot:Connected successfully (remote) from Workbench Connected successfully as the web site user from CLI Checked (and reinstalled) the php-mysql package Turned off iptables, no change installed mysql-devel packages We've got a drupal site installed and it does a function that checks if mysql_connect exists. Drupal says the function doesn't exist, so it's like PHP doesn't even see mysql. Now, we didn't uncomment the extension=mysql.so line in php.ini, but I checked my cPanel Cent machine and it wasn't uncommented there either, so I assume it doesn't have to be on Fedora/RHEL/Cent.
We installed from yum, we did NOT compile Apache/PHP/MySQL. We'd prefer not to if possible. UPDATE: We are running on a VPS and we had enabled mpm.worker (ie, we uncommented the worker line in /etc/sysconfig/httpd). Once we went back to using prefork, all is well. Apparently you have to compile php/apache to use worker.
View 1 Replies
View Related
Apr 5, 2011
I cannot connect to mysql on my server.It is running but I cannot remember whether it has a password or not.I get this: [root myscripts]# mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)[root myscripts]#.I have tried running mysql -u root -h localhost -p and entering a blank password but no luck.
View 5 Replies
View Related
Feb 16, 2010
I've just decided to jump in and learn some PHP and MySQL stuff, by creating a dbase on our intranet server (CentOS5.4/Apache/PHP).
Everything seemed to go great with the MySQL dbase creation - I can even successfully connect to the dbase via ODBC on a Windows box (but there's no data in there yet).
My next step was to create a PHP form to gather info from intranet users, which would be submitted to and stored in the MySQL dbase.
I have tried following various basic tutorials online but I have started to struggle. If I run even the most simple of PHP connection on the server, I just get a blank page (i.e.: no 'connected' or 'failure to connect' message).
For instance:
<?php
mysql_connect("localhost", "admin", "1admin") or die(mysql_error());
echo "Connected to MySQL<br />";
?>
If I run this, I get a blank page.
How can I start to troubleshoot this? As mentioned I felt quite confident that MySQL was working due to success with ODBC, and the server already serves html/PHP services/pages as it's an existing intranet server.
View 3 Replies
View Related