LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-17-2003, 12:20 AM   #1
nbjayme
Member
 
Registered: Sep 2003
Posts: 77

Rep: Reputation: 15
Unhappy PHP & MyODBC


Hello,

My Distro is RH9 and I installed PHP4 and MySQL4 and MyODBC3.51

I've got a problem connecting PHP with MyODBC.

DataSource Name Not found.

- - - - -/etc/odbcinst.ini - - - -
[myodbc3]
Description = MySQL Driver 3.51
Driver = /usr/local/lib/libmyodbc3.so
FileUsage = 1

- - - - - /etc/odbc.ini - - - -
[myDSN]
Driver = myodbc3
Description = MySQL ODBC 3.51 Driver DSN
SERVER = localhost
PORT = 3306
USER =
Password =
Database = test
OPTION = 3
SOCKET =


libmyodbc3.so is linked to the correct location of the shared library file.
my php script has "myDSN' as the data source value
$pconn = odbc_connect("myDSN","usr","pwd");

Where did I go wrong?

NBJayme
 
  


Reply



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
myODBC and unixODBC LandRoverMan Programming 2 04-21-2009 06:14 AM
Slackware guide for AMP Apache MySQL & PHP xushi Slackware 35 05-11-2006 11:18 AM
php-devel & PHP extensions EHCanadian Mandriva 0 06-23-2005 06:06 PM
PHP & MySQL Count on PHP Gerardoj Programming 1 06-01-2004 10:43 AM
OpenOffice1.1 connections to MySQL 4.0.xx through MyODBC MyODBC-3.51.06-1 lsropia Linux - Software 0 10-14-2003 05:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:19 PM.

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