Jump to content
  • 0

could not connect to mysql


Question

Posted

i am trying to make a website. everything is set like template and such things but when i try to connect website to my database with this config:

<?php

$L2JBS_config["mysql_host"]="localhost"; // MySQL IP

$L2JBS_config["mysql_port"]=3306; // MySQP port

$L2JBS_config["mysql_db"]="l2jdb"; // l2jdb or your lineage 2 server database name

$L2JBS_config["mysql_login"]="my user name"; // MySQL Login name

$L2JBS_config["mysql_password"]="my password"; // MySQL Password

$hserver="srv ip"; // Server IP

$portgame="7777"; // Game Server Port

$portlogin="2106"; // Server Port

?>

but after all these when i go to my website it shows me this message "Couldn't connect to MySQL".

 

i dont know whatto do is there anyone who can help me? or give me your msn please i really need this

Recommended Posts

  • 0
Posted

in config.php is everything same as my db. like l2jdb,  localhost and i use my ip from findmyip.com and thats what i use on hopzone.net and there it shows online my server and so on.

 

 

  • 0
Posted

can anyone help ? the problem is with _config_proces.php

 

<?php
$L2JBS_config["javascript_sort_method"]="bubble";
  $link = mysql_connect($L2JBS_config['mysql_host'].":".$L2JBS_config['mysql_port'], $L2JBS_config['mysql_login'], $L2JBS_config['mysql_password']);
  if (!$link)
    die("Couldn't connect to MySQL");
  @mysql_select_db($L2JBS_config['mysql_db'], $link)
    or die ('Error '.mysql_errno().': '.mysql_error());
?>

 

with this i think cause when i remove this then it allows me to go to my website but does not show me online and does not show me players. but if i include this in fttp then wheni try to go in my website it tells me "could not connect to mysql".

anyone?

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

    • You charge 10,000 - 15,000 USD for Java files and your site shows 370 projects and 786 customers. you're not just a millionaire, you're a multimillionaire bro 😂 and enjoy it while it lasts. Ai is coming in hot and your 18 developers better start updating their CVs. soon everyone will build whatever they need for free. The 15k Java files era is over 😄  
    • Honestly, I don’t care about your files at all. I’m just watching what people are sharing, and what’s interesting is that whenever someone shares your files, or anyone else’s files for that matter, sources included, they’re always old files from like 10 years ago :d.  You act way too cocky.. go see what people are writing about you on MMO Dev, then come talk to me.  
    • Hello everyone, I'm here to ask for help with information about contacting StrixGuard support.   I subscribed to their platform and license a while ago, I haven't had any problems with it and I even managed to block Adrenaline Premium.   I hired them mainly to have some protection and be able to use the HWID on my server. It turned out to work much better than some people had said and than I expected.   Therefore, I purchased another license from Strix for another project, but the problem we encountered was the time difference and language barrier, which complicated things for us in getting it to work on my new project.🤣🤣🤣   But currently, he hasn't responded or connected to Telegram for weeks, which is where I managed to finalize everything.   I understand that due to the situation in Russia regarding communications and networks, it would currently be even more impossible to contact any support.   But if anyone here still has contact information for StrixGuard support, I'd appreciate it if you could share it with me. It doesn't matter if it's a Russian number or a Russian app; I can still use them and make contact. But I need more than just the Telegram contact I have.   So I would greatly appreciate any information... and please refrain from suggesting other anti-cheat programs or that I should switch. All I'm looking for is contact with StrixGuard support, nothing more.   Thank you all very much.
    • If you are interested in purchasing, I will send you the tests DLL files so you can verify their authenticity.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..