LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-26-2011, 07:28 PM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920
openemr-3.2.0 - Connecting to MySQL Server...


hi, i am trying to run open-emr using these instructions:
http://www.openmedsoftware.org/wiki/...x_Installation

i get as far as step 3 where this screen never seems to connect to mysql:
Quote:
OpenEMR Setup

Step 3

Configuring OpenEMR...

Connecting to MySQL Server...
i think i have everything installed:
Code:
[liveuser@localhost html]$ rpm -q mysql-server php httpd
mysql-server-5.1.55-1.fc14.x86_64
php-5.3.5-1.fc14.x86_64
httpd-2.2.16-1.fc14.x86_64
[liveuser@localhost ~]$ uname -a -m -p
Linux localhost.localdomain 2.6.35.6-45.fc14.x86_64 #1 SMP Mon Oct 18 23:57:44 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
is there something i am supposed to do to bind apache to mysql or something.

thanks,
schneidz

also:
Code:
[liveuser@localhost ~]$ sudo service mysqld status
mysqld (pid 4428) is running...
[liveuser@localhost ~]$ sudo service httpd status
httpd (pid  3316) is running...
[liveuser@localhost ~]$ mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.1.55 Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use test
Database changed
mysql> \s
--------------
mysql  Ver 14.14 Distrib 5.1.55, for redhat-linux-gnu (x86_64) using readline 5.1

Connection id:		11
Current database:	test
Current user:		liveuser@localhost
SSL:			Not in use
Current pager:		stdout
Using outfile:		''
Using delimiter:	;
Server version:		5.1.55 Source distribution
Protocol version:	10
Connection:		Localhost via UNIX socket
Server characterset:	latin1
Db     characterset:	latin1
Client characterset:	latin1
Conn.  characterset:	latin1
UNIX socket:		/var/lib/mysql/mysql.sock
Uptime:			1 hour 3 min 33 sec

Threads: 1  Questions: 67  Slow queries: 0  Opens: 30  Flush tables: 1  Open tables: 23  Queries per second avg: 0.17
--------------
i see this in the logs:
Code:
[liveuser@localhost html]$ sudo tail -f /var/log/httpd/error_log
[Sat Mar 26 23:08:09 2011] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function mysql_connect() in /var/www/html/openemr/setup.php on line 237, referer: http://localhost/openemr/setup.php
i dont know how to correct it... any advice ?

Last edited by schneidz; 03-26-2011 at 11:10 PM.
 
Old 03-27-2011, 12:07 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Original Poster
Rep: Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920
this was the solution:
Code:
sudo yum install php-mysql
sudo service mysqld restart
sudo service httpd restart
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error connecting to MySQL Server k_oudom Linux - Server 7 09-08-2009 04:22 AM
Connecting to a mysql server not on localhost kornfan2007 Linux - Newbie 10 07-18-2007 08:43 AM
Connecting to a Remote MySQL Server msound Linux - Networking 2 10-18-2006 01:07 PM
Connecting to MS SQL server with MySQL moistTowelette Linux - Desktop 1 10-02-2006 05:46 AM
connecting to remote MySQL server acos7 Linux - Software 2 01-31-2004 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration