Ubuntu :: Connecting PHP To Sybase Database?

Apr 13, 2010

At work we have a Sybase Adaptiver Server 9.0 database running, it has to stay there for now, and we are developing a web application that will connect to it using PHP.I was already able to make it work using ODBC on Windows and using odbc_connect on PHP.But now we are moving to Ubuntu, and we are trying to get it to work on it.I already have Apache2 and PHP5 up and running.There are two ways (I can think of) we can do this, one is using ODBC and then use "odbc_connect" and the other is making "sybase_connect" work on PHP. Being the latter probably the best one since you wouldn't have ODBC as an intermediary.

Either way, as long as it works I'm happy. ODBC would be fine to meet our requirements for now.I already have ODBC Data Source Administrator but no idea how to create/include/add the Sybase driver.We also tried setting freetds up, but that didn't work either, we might be missing something.

View 9 Replies


ADVERTISEMENT

General :: Accessing - Connecting To A Sybase Database From PHP Running

May 12, 2011

I get some trouble setting up good environment in linux.. i have problem regarding connecting php(under linux) to a sybase server(under windows),,, is there anyway connecting this two technologies?..

View 7 Replies View Related

Programming :: Accessing A Sybase Database From PHP Running?

May 12, 2011

i get some trouble setting up good environment in linux.i have problem regarding connecting php(under linux) to a sybase server(under windows)is there anyway connecting this two technologies?.

View 1 Replies View Related

Software :: Connecting To Sybase Server?

Aug 12, 2010

I need to reconfigure my php to have Sybase support. However, I am not sure which library to use. I'll try freetds but I am not sure if it will work. I used it before with Microsoft MSSQL.

View 3 Replies View Related

Server :: Connecting To A Mysql Database Using Php

Feb 28, 2010

Well i have got a problem with connecting to a mysql database using php. I used this package "mysql-noinstall-5.1.44-win32.zip" and extracted it to c:mysql and added c:mysqlin to the PATH variable and used the following command in command prompt to start mysql: c:mysqlinmysqld --standalone

well mysql did start and everything went well accessing mysql in command prompt. Well under the database "mysql" in the table "user" i created a new user "php" with a password="****" and hostname = "localhost" but when i try to access this database with a following php routine:

And when i accesses it with my browser using localtost/test.php, all i get is "localhost" displayed on screen, "Connected to mysql" never gets displayed not i get any error..i am using windows 7(32-bit-ultimate)and mysql 5.1.44.

View 8 Replies View Related

Ubuntu :: Connecting Database With Java Query Program?

Jun 22, 2010

I've got a database and I've got a Java program that I'm programming in Netbeans that is suppose to run queries to the database. how I will set about to connect the database with the Java program so that I can run the queries?

It is very important that I learn how to do this, else I am forced to go back to XP in order to finish this project on time.

View 2 Replies View Related

Programming :: Error Connecting To Oracle Database From PHP

Oct 12, 2010

I've just installed the Oracle Instant client using this: https://help.ubuntu.com/community/PHPOracle

The phpinfo() show me that oci8 is enable, but when I try to query that database I've got the following message:

PHP Code:

Code:

How to troubleshoot.

View 2 Replies View Related

Ubuntu :: Java Installation Error Connecting To MySQL Database

Jul 2, 2009

I have recently installed Java in my Ubuntu 9.04 environment so that I can teach myself Java. Basic Java programs work, but I am having trouble connecting to a MySQL database. I installed these packages using Synaptic Package Manager.

1.gsfonts-x11
2.java-common
3.odbcinst1debian1
4.sun-java6-bin
5.sun-java6-jdk
6.sun-java6-jre
7.unixodbc

After these packages were installed, I was not sure if I needed to do this, but I downloaded the MySQL connector from MySQL :: MySQL Connectors and installed in a directory called /home/mark/mysql/.

I then did "sudo gedit /etc/environment" and added a CLASSPATH to where I installed the connector:

Code:

I found an example Java program from Using JDBC with MySQL, Getting Started and stripped it down even further to test the MySQL connection.

This is the program I am running:

Code:

Could not find the main class: Jdbctest. Program will exit. I am new to Linux, Ubuntu, Java and MySQL, so I have probably left out something that is very obvious.

View 1 Replies View Related

Software :: Connecting To Central Mysql Database Server

Sep 17, 2009

We are hoping to build a central database server so that we can take all the singular instances of mysql off our web servers and have the data stored in one place (we also run a number of syslogging servers that use mysql, netflow servers that use mysql, and many other servers that have mysql tables that we would like to consolidate as well). Now I have run into the problem that requires all the customer web sites to change the configuration for their connection to the mysql server from a local connection to a remote connection, which is something we are trying to avoid. I am wondering if there is a software suite or a function of mysql itself that allows you to present the remote database information as local databases to a server, allowing customer configurations to remain intact, as if the mysql server never moved off the local machine? Or a different question, can you configure mysql server to take local requests and forward them to a central mysql server?

View 9 Replies View Related

Programming :: Connecting To Remote Oracle Database Using Perl?

Jan 27, 2010

How to connect to remote oracle database using perl?

This is what I tried.

Code:

But I am unable to connect.

View 4 Replies View Related

General :: Connecting To Mysql Database Remotely Via Port 3306 ?

Jul 23, 2011

I'm new to linux, and setting up the mysql database server.

Here are my situation:

OS: CentOS 6
mysql version: 5.5

I tried to use MySQL Administrator to connect to my database on the host 192.168.1.120
and my computer is under the same network with ip: 192.168.1.105

But it shows the error msg: Could not connect to MySQL instance at 192.168.1.120

Error: Can't connect to MySQL server on '192.168.1.120'(61)(code 2003)

On the server side I've tried:

Code:

skip_networking is off and I've set the port for it.

When I check the process in OS:

Code:

When I try netstat:

Code:

I thought it's the problem of firewall, so I have check it also:

Code:

View 3 Replies View Related

Software :: Connecting To Mysql Database - Can't Connect To Local MySQL Server Through Socket

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

General :: Sybase ASE Install On Ubuntu?

Feb 4, 2010

I'm trying to install Sybase ASE EXpress 15.5 on Ubuntu and am getting the following error message: ./startserver: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory.

View 3 Replies View Related

Ubuntu Servers :: Sybase Not Working After Upgrade From 10.04 To 10.10?

Nov 19, 2010

I had sybase server running on my desktop but after the upgrade it does not seam to start properly. tried to restart the server many times but does not seam to help

The logs are displaying as below
00:00000:00001:2010/11/19 13:53:08.21 server Recovery complete.
00:00000:00010:2010/11/19 13:53:08.26 kernel Initializing Job Scheduler Task
00:00000:00010:2010/11/19 13:53:08.39 kernel Installed Job Scheduler sequencer code version 0.27 - 27 tokens

[Code]....

View 1 Replies View Related

General :: Install Sybase ASE 15.0.3 On CentOS?

Jul 5, 2011

I want to install Sybase ASE 15 on CentOS Linux 5.6 has anyone ever done that.

View 1 Replies View Related

Programming :: Connect To Sybase Using FreeTDS?

Jan 26, 2011

My freetds.conf

Code:
# /usr/local/etc/freetds.conf
# $Id: freetds.conf,v 1.12 2007/12/25 06:02:36 jklowden Exp $
#
# This file is installed by FreeTDS if no file by the same
# name is found in the installation directory.

[Code]...

View 2 Replies View Related

Software :: Use HTML Tag In Sybase Stored Procedure?

Jul 6, 2011

I have a query in which i need to display the part of query output in bold

Example: select 'Previous NAV value for the fund is '+ CONVERT(VARCHAR(50),@prevNav) OUTPUT:Previous NAV value for the fund is 12345 so i need to display the output in BOLD like

Previous NAV value for the fund is 12345 OR

Previous NAV value for the fund is 12345

either the value can be in bold or the text can be in bold

View 9 Replies View Related

Software :: Get Freetds And Sybase Up And Running On Centos Server?

Mar 9, 2010

I'm attempting to get freetds and sybase up and running on my centos server, mainly for nagios - MSSQL checks. I've installed freetds freetds-devel ok but am having issues getting SYBASE installed. I've had a go via cpan but get a failure on the sybase environment variable. I've set it to /etc where the conf file is located as well as trying /urr/lib64 for the tds libs, but no joy. Has anyone had much luck with this on centos?

export SYBASE=/etc
[root@nagios ~]# echo $SYBASE
/etc
cpan DBD::Sybase
CPAN: Storable loaded ok (v2.15)

[Code]...

View 3 Replies View Related

Software :: Download Sybase Open-client 11.1.1-3.i386?

Jul 13, 2011

I want to freely download and install sybase-openclient-11.1.1.3 either source or rpm package sybase-common-11.9.2-3.i386 either source or rpm package Sybase Adaptive Server Enterprise versions 11.9.2 or 11.0.3.3 for Linux. I searched a lot but didn't get it,

View 3 Replies View Related

Server :: A Script To Shutdown A Service When A Sybase Table Reads Over A Certain Count?

Aug 3, 2009

Someone at work has requested if i can find out anything on the above.Been googling around as well as i have only been using Linux for 2 months now.

basically there is a SYBASE ASE installation on the server, which a tomcat based website references.They want the service to stop once a certain row limit is reached in the table.

I know i have to do a count statement on the sybase table from ISQL.But how can i create the action "service website stop" once the count value reaches 4000 ?

View 2 Replies View Related

General :: Monitor Database IO And Available Database Threads?

Mar 7, 2011

am using zabbix open source solution for systems monitoring. I am facing a problem and discussed it on zabbix forum. my post was as "My zabbix server is behaving abnormally, approximately daily from 9 to 12, the server stop accumulating logs. I observed that the server report is RUNNING but it did not accumulate log values and also the machine have no extra load. Its shown in the graph image attached.t the following reply,"database performance?are you monitoring database IO and available database threads? "So any one have any idea that how can I do this as I am using MySQL as backend database on RHEL 3.

View 1 Replies View Related

Ubuntu Networking :: 9.10 Not Connecting To Internet At Home But Connecting From Work

Feb 9, 2010

I just installed Ubuntu 9.10 and its great. However when I connect to the internet at home it shows that the connection has been established but I still cant connect to the internet. My flatmates are all able to connect. However, I am able to connect from work both wirelessly and through an ethernet cable.

View 2 Replies View Related

General :: Application Running As User Foo Log Onto Database As (database) User Foobar?

Jan 5, 2011

I am writing a simple application that will run as user foo (i.e. Ubuntu user foo).However, the application will connect to my database as (database user foobar). IIRC, database users have nothing to do with Linux system users - but I just need to clarify that.So can an app launched to run as user 'foo', connect to a database as user 'foobar'?

View 1 Replies View Related

Server :: Database Stopped Showing Up - Files Still There - Restore The Database From The Files?

Jul 8, 2011

I recently moved into a new place and when I hooked up my webserver, I wasn't able to bring up my page, even from localhost. With some digging, it seems that I can't access the database that housed my posts (wordpress installation). I looked for the datadir in MySQL and that directory shows the wordpress directory that should be holding the database and all the files are still there. 1) why the database no longer shows up 2) how to restore the database from the files?

View 2 Replies View Related

Networking :: Database Error: Unable To Connect To Database:The MySQL Adapter "mysql" Is Not Available

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

Ubuntu :: How To Build A Database

Mar 20, 2010

I'm new both to database and database in Ubuntu. I am working on a project in school which students are told to go to a site (html? ftp?), and read a document. I need to record the names of the students who read a document onto a spreadsheet. I was told to look into MySQL and Ubuntu. How can I proceed with this in Ubuntu?

View 1 Replies View Related

Ubuntu :: Database W/ Web Interface

Oct 18, 2010

I currently have a database that I would like to be able to update using a web interface and then display on the website. I would like users to be able to update the database by entering one record at a time with around 10 fields of information (drop down menus and text boxes). I am unfortunately using MS SQL for my DB as of right now.

View 1 Replies View Related

Ubuntu :: Looking For Database Designer?

Jan 9, 2011

I'm am looking for a visual MySQL Database Designer wher i can draw the Tables and connect them with lines. It should be able to generate the MySQL-Create command for the tables.

View 3 Replies View Related

Ubuntu :: Sudo Could Not Connect To Database?

Jan 16, 2010

I have a strange thing happening when I use the sudo command. I'm getting "Could not connect to database" every time I use the sudo command.I don't have the slightest clueThe sudo command works but it gives this phrase.

View 9 Replies View Related

Ubuntu :: Database For Music CD Collection?

Feb 20, 2010

I'm looking for a recommendation for an app that will keep details of all my audio CDs. Ideally I'd like it to be able to produce html or xml so that I can check it from anywhere ("Have I got that track?").

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved