Jump to content
  • 0

[WEBSITE] What's wrong?


Question

Posted

Hey guys,

 

So i'm trying to make my website works correctly, but I cant.

 

I installed the website in my wamp directory and in my host.

 

When i'm in localhost everything works correct, all connections with databases (using IP's everywhere, not localhost or 127.0.0.1).

 

2jcfpkm.jpg

 

But when I do the same with my website through cPanel, with the same IP/account/everything, it doesnt works:

 

29z2d84.jpg

 

In cPanel MySQL Remote I added the IP that i'm using in the pics, but the same.

 

Someone know something about this?

 

Thanks,

 

Regards.

14 answers to this question

Recommended Posts

  • 0
Posted

I dont undestand exactly what you mean, i think it's obvious that I have database installed since I have L2Nuke opened and working.

 

Maybe we are not talking about the same SQL database :/

 

Thanks.

  • 0
Posted

I'm sorry, but my english is not that good like yours and it's difficult for me to undestand what you mean exactly.

 

If you mean databases in Navicat I only have one, L2Nuke's database.

 

Thanks,

 

Regards.

  • 0
Posted

I'll try using google translator, though I don't speak Spanish.

 

¿Ha instalado el sitio web en el mismo servidor que el servidor del juego?

 

  • 0
Posted

Oh,

I'll try using google translator, though I don't speak Spanish.

 

¿Ha instalado el sitio web en el mismo servidor que el servidor del juego?

 

 

Oh, thanks for the translation.

 

The website is installed in Psomasweb services, and the server is hosted in my own dedicated PC, there are in different hosts.

 

But I dont know why in localhost the website is working perfect, with my server's IP, and the same config is not working for l2nuke.com host.

 

Maybe I have to do something to connect website's host with my navicat? But I dont know what.

 

Thanks,

 

Regards.

  • 0
Posted

Oh,

Oh, thanks for the translation.

 

The website is installed in Psomasweb services, and the server is hosted in my own dedicated PC, there are in different hosts.

 

But I dont know why in localhost the website is working perfect, with my server's IP, and the same config is not working for l2nuke.com host.

 

Maybe I have to do something to connect website's host with my navicat? But I dont know what.

 

Thanks,

 

Regards.

 

Just so I understand:

 

The game server is located on your own computer but the database is located on the web host Psomaweb.

<es>El servidor del juego se encuentra en su propia computadora, pero la base de datos se encuentra en la Psomaweb de alojamiento web.</es>

 

The hosting company can block access to remote connections to the MySQL database.

<es>La empresa de alojamiento puede bloquear el acceso a las conexiones remotas a la base de datos MySQL.</es>

 

  • 0
Posted

I have the database(of the server) and server files in my own PC, what I have in website host are only the website files.

  • 0
Posted

Do you want your website to connect to the database on your computer?

¿Quiere que su página web para conectarse a la base de datos en su ordenador?

  • 0
Posted

Do you want your website to connect to the database on your computer?

¿Quiere que su página web para conectarse a la base de datos en su ordenador?

 

That's what I want, because if I try to connect the website to my Navicat the website doesnt work, you can see the second image.

 

PS: You dont have to translate everything dude, I just didnt undestand your first post, but thanks anyways ;)

 

 

  • 0
Posted

That's what I want, because if I try to connect the website to my Navicat the website doesnt work, you can see the second image.

 

PS: You dont have to translate everything dude, I just didnt undestand your first post, but thanks anyways ;)

 

 

 

Oh, sorry :c

 

Well if you want the website to be able to connect to your mysql database you have to make sure

1) You have remote access enabled

2) you have the correct port forwarded if you're behind a router.

3) If you're telling your website to connect to 'localhost', it's going to try to connect to the database located on the server. You need to fill in the number you get from: http://www.whatismyip.com/

  • 0
Posted

Oh, sorry :c

 

Well if you want the website to be able to connect to your mysql database you have to make sure

1) You have remote access enabled

2) you have the correct port forwarded if you're behind a router.

3) If you're telling your website to connect to 'localhost', it's going to try to connect to the database located on the server. You need to fill in the number you get from: http://www.whatismyip.com/

 

1- Remote access enabled in Navicat? I dont know how to enable it :/

2- I have 7777; 2106; 80; 9014; 3306 ports opened, and for example i'm using scripts like this:

 

<?php
//---------CONFIGS---------//
$title="Crated By L2WideNetwork for L2JFrozen";  // Page Title Here
$type="1"; //Type 1 
$server=""; // MySQL IP
$user=""; //MySQL Username
$password=""; //MySQL Password
$database=""; //MySQL Database
$top="100"; 
//-----END OF CONFIGS-----//



if ($title) {
print("<head><title>$title</title></head>");
}
else {
print("<head><title>No Page Title</title></head>");
}
mysql_connect("$server", "$user", "$password") or die(mysql_error());
mysql_select_db("$database") or die(mysql_error());

if($type == '1'){
$result = mysql_query("SELECT char_name,pkkills FROM characters where pkkills>0 and accesslevel=0 order by pkkills desc")
or die(mysql_error());
echo "<center><h3>Top $top Pk Players</h3></center><table border=10 align=center><tr> <th>Character</th> <th>Top Kills</th> </tr>";
$sum1=0;
while($row = mysql_fetch_array( $result )) {
	$name = $row['char_name'];
	$pkkills = $row['pkkills'];
	if ($sum1<$top) {
	echo "<tr><td align=center>$name</td><td align=center>$pkkills</td></tr>";
	$sum1++;
	}
}
}

else {
echo "<center>Please config the variable $type. Make it <b>1</b> for Top Status</center>";
}
?>

 

It dont ask for port nowhere.

 

3- I'm using my IP's in localhost website and in l2nuke.com, i'm not using "localhost" as "hostname" in website scripts.

 

Thanks.

  • 0
Posted

Oh god, i'm getting errors everywhere:

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-u account -p password

 

I'm using mysql 5.5.20, it seems that the guide is for another version.

 

Is there any website to see mysql 5.5.20 commands?

 

Thanks you.

 

EDIT: I found this: http://dev.mysql.com/doc/refman/5.5/en/mysql-commands.html

 

Let's see if I can make the full command...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • This update resaves 25_25 from the original (with sounds) (without the cave below) Some emitter fixes (removed waterfalls with high-poly meshes) The geodata is old, but it works Everything else is unchanged Download P.S. The effect files are taken from the high client for Interlude, so if you're experiencing critical skills, use the default ones for your Version.  
    • GX-Ext Which file of the svn files should i edit to make blow skills to have 100% chance so i can add the settings in the IlExt.ini? because when im changing it from the skilldata.txt it just helps
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock