PDA

View Full Version : how do i determine if mysql is there in my university server


joy83
04-28-2007, 06:48 AM
I am trying to add some php scripts to show some information to my students in my website which is in the university server. Now definitely this needs to be done using mysql to keep track of the database, but i am not so sure if its installed in the university server. Even if it is I don't know if I can access it or not. I can go and ask the web administrator on monday about it, but is there any other way to figure out if I can create a database in my server and use it without having to wait till monday. Please help.

guelphdad
04-28-2007, 06:10 PM
if your server is unix/linux in flavour do the following in your shell:

LOCATE mysql

if it says locate can't be found use FIND instead. but I forget if you have to specify the directory to search in with find.

if you are on WINDOWS then just do a search for mysql

EDIT actually I thought of something easier. in php create a file with the follwing in it:

php_info()

put that in your web directory of php and then open the file in your browser. if you see a particular area for MYSQL then you have it installed and it is recognized by php.

if you don't have that then mysql may still be on the server but just not recognized by php so find it using the info at top.