Jump to content
The Uniform Server Community

New user need help with Uniserver 3.3 and MySQL


contact77
 Share

Recommended Posts

Hi. I'm new to programming or at least PHP. I've loaded Uniserver

3.2a previously and now 3.3. I'm having a few problems. The main

problem I'm having is connecting to MySQL. I'm also still getting the

3.2a main page when I go to localhost/a/. Well actually I was looking

for the home page on localhost/ and I got the old 3.2a page showing

the "here has to be your server" page with the reference to the 3.2a

admin page and that was how I discovered the 3.2a admin page was

still there. If it isn't a problem my main concern is connecting to

MySQL. I've tried the PHP manual examples and I keep getting "Call to

undefined function mysql_connect()". I haven't made any config

changes. Am I suppose too? I basically am running the program as was

downloaded from your sight. I'm not sure if I'm suppose to change

anything or do anything to Windows as it mentioned something in the

PHP manual about setting the path to the PHP directory so Windows

could access the mysql dll. Do you have a clue as to what my problem

could be? Please advise. Thanks.

PS I'm using Windows 2006 v3

Link to comment
Share on other sites

Hello -

 

in version 3.3 you go to uniform server new admin panel by going to localhost/apanel/ and then in the left menu you should be able to turn on mysql and your scripts should then be able to connect.

 

hth ~ megan

2927[/snapback]

 

Thanks. I am aware of that. I have been able to turn on MySQL and have run PHP scripts from the server. The problem is that I don't connect when I run a PHP mysql_connect function.

For the 3.2a problem I just wondered why I can still go to the 3.2a window when I'm using 3.3 and have deleted 3.2a from my computer?

Link to comment
Share on other sites

ok then if it is not simple and straightforward you will need one of the more knowledgeable people to help you - the only other thing I can think of is when the new package was installed it would have the default password & user id for mysql and if you are using different login and password, you would have to change the defaults to those.

 

I only thought you didn't know about the new apanel url because you did not mention it in your post

 

sorry not to be more help, megan

 

Thanks. I am aware of that. I have been able to turn on MySQL and have run PHP scripts from the server. The problem is that I don't connect when I run a PHP mysql_connect function.

For the 3.2a problem I just wondered why I can still go to the 3.2a window when I'm using 3.3 and have deleted 3.2a from my computer?

2928[/snapback]

Link to comment
Share on other sites

ok then if it is not simple and straightforward you will need one of the more knowledgeable people to help you - the only other thing I can think of is when the new package was installed it would have the default password & user id for mysql and if you are using different login and password, you would have to change the defaults to those.

 

I only thought you didn't know about the new apanel url because you did not mention it in your post

 

sorry not to be more help, megan

2929[/snapback]

 

OK, thanks for replying so quickly. I have tried the default username password and set up my own username password as well but still didn't work? Maybe I'm getting the syntax wrong but I've tried it several ways?

Link to comment
Share on other sites

Ok.. a> make sure you do not have a file called LIBMYSQL.DLL in the C:/Windows or C:/Widows/System32 folder.

 

Also, make sure your code is correct and you do not have a bug in it.

 

Delete 3.2 and just use 3.3. You do not need 3.2....

 

Thanks Megan

Link to comment
Share on other sites

Ok.. a> make sure you do not have a file called LIBMYSQL.DLL in the C:/Windows or C:/Widows/System32 folder.

 

Also, make sure your code is correct and you do not have a bug in it.

 

Delete 3.2 and just use 3.3. You do not need 3.2....

 

Thanks Megan

2938[/snapback]

Thank you for the input. OK. It's working. I don't know what happened as I didn't do anything except to check one last time to make sure my code didn't work before I sent it to you to check and lo and behold it worked(?) OK.

So as for the 3.2 I already deleted it but I still can get the admin page for it when I go to http://localhost/a/. Of course none of the links work but the page still exist somehow. This may be a dumb question but where is my browser getting the info from for that page if I deleted it? Just curious. It's not a problem and I can live with it but if there is a way to get rid of it can you let me know?

Thanks so much.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...