登录 | 注册 | FAQ
Anonymous

exporting my database

+ 发表回复

3 篇帖子 分页: 1 / 1


exporting my database

Bereshna » 周一 7月 07, 2014 6:07 pm

Hello,
First of all thanks for your useful website, now i have follwed all the useful material here and i have build a website that has a database behind in Xampp.

i have question that when i export my database i may not face future problems ?
because i connect to mysql database in xampp by this command in all php pages in my website:
mysql_connect("localhost", "root", "") or die (mysql_error());

and now that i xport it on the remote server, may i face problems or not?
also i had port 8080 problems that when i use xampp in my pc i add :8080 after local host word in my url?

please help and guide me!
thanks a lot and hope success for all of you..
头像

Bereshna

  • 帖子: 3
  • 注册: 周三 5月 28, 2014 3:22 am

Re: exporting my database

XainPro » 周四 7月 10, 2014 12:50 pm

mysql_connect("localhost", "root", "") or die (mysql_error());

you need to change root with your 2nd server and "" with your password there and no need to change localhost

:8080 is because your xampp is configured on 8080 if it was configured on 80 then you do not need to enter this 8080 maybe skype is using your 80 port
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: exporting my database

Bereshna » 周四 7月 10, 2014 11:00 pm

Thanks a lot for solving my problem

Good Luck
头像

Bereshna

  • 帖子: 3
  • 注册: 周三 5月 28, 2014 3:22 am


+ 发表回复

分页: 1 / 1