Jump to content
  • 0

Connecting website to db


Question

Posted (edited)

Hello, i've added this website:

 

but when i try to open it,it says

Spoiler

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)Access denied for user 'root'@'localhost' (using password: NO)

 

 

what should i edit?...i have this 3 files in config folder:

1.Connect.php

<?php
# IP DO DEDICADO
$ip = "79.137.33.234";
// Connect PHP PDO
$connect = 'mysql:host=localhost;dbname=l2jdb';

try {
	$db = new PDO($connect,'root','');
	$db->setattribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
	echo $e->getMessage();
}

/*=======================================================================================*\
||########################| CONFIGURE NEWS |#########################||
\*=======================================================================================*/
$authorconf = 'Admin'; # Nome do author que irá aparecer nas news 


?>

2.Conf.php

<?php
$conexao = mysql_connect('localhost','root','') or die (mysql_error());
$banco = mysql_select_db('l2jdb', $conexao) or die(mysql_error());
$end = 'localhost';			 # Endere�o ou IP do seu site sem o 'http://www.', escreva assim: 'seusite.com.br' ou '200.145.221.89'
$nomedosite = 'L2 Forgot Life';

$host_smtp = 'mail.l2forgotlife.com';
$email_contato = 'EMAIL@l2forgotlife.com';
$senha_email_contato = 'SENHA';
?>

3.Config.php

<?php
$conexao = mysql_connect('localhost','root','') or die (mysql_error());
$banco = mysql_select_db('l2jdb', $conexao) or die(mysql_error());
$end = 'localhost';			 # Endere�o ou IP do seu site sem o 'http://www.', escreva assim: 'seusite.com.br' ou '200.145.221.89'
$nomedosite = 'L2 Forgot Life';

$host_smtp = 'mail.l2forgotlife.com';
$email_contato = 'EMAIL@l2forgotlife.com';
$senha_email_contato = 'SENHA';
?>

 

Edited by KIDutz

Recommended Posts

  • 0
Posted
13 minutes ago, Pamela32 said:

do not do this if u dont know .. its possible to lose server from this 

 

it is saved i cannot loose it.i have backups

  • 0
Posted

Google is your friend. :dat:

 

Hint, you have to edit some mysql properties. If server / website is on another host, you have to allow the connection. By default it restrict to local, from memory.

 

I know that crappy feeling configuring it for the first time. Enjoy the drive :happyforever:

  • Haha 1
  • 0
Posted
2 hours ago, SweeTs said:

Google is your friend. :dat:

 

Hint, you have to edit some mysql properties. If server / website is on another host, you have to allow the connection. By default it restrict to local, from memory.

 

I know that crappy feeling configuring it for the first time. Enjoy the drive :happyforever:

 

privileges to the user in db are give, ports are opened.i just dont know how to set this configs.none of the tutorials i found doesnt look like this configs

  • 0
Posted
Just now, KIDutz said:

 

no

so create new mysql account.

 

CREATE USER 'USER1'@'%' IDENTIFIED BY 'PASSWORD1';

and grant privileges for this user:

GRANT ALL ON *.* TO 'USER1'@'%';

'%' -  this mean for all ip address allow connect.

you can change it example to your website ip for security.

  • 0
Posted
18 minutes ago, wongerlt said:

so create new mysql account.

 


CREATE USER 'USER1'@'%' IDENTIFIED BY 'PASSWORD1';

and grant privileges for this user:


GRANT ALL ON *.* TO 'USER1'@'%';

'%' -  this mean for all ip address allow connect.

you can change it example to your website ip for security.

 

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not knownphp_network_getaddresses: getaddrinfo failed: Name or service not known

  • 0
Posted

you actually sound pretty retaded, you can't do any basic googling to solve own problems where EVERYTHING you try to do was explained in hundreds of ways already. If you expect someone to do it for you with 0 own effort, just pay for it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   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.



  • Posts

    • Price Update on TikTok Accounts and New Products. In traffic arbitrage, TikTok accounts play a key role. The success of advertising campaigns and, consequently, the income of an arbitrager directly depend on their quality. Reliable and high-quality accounts provide stability, trust, and long-term results in promotion. With us, you will find only verified TikTok accounts suitable for launching advertising campaigns, growing audiences, and scaling profits. The right account choice is the foundation of effective arbitrage! Full assortment of our online store: Accounts: Telegram, Facebook, Reddit, Twitter (X), Instagram, YouTube, TikTok, Discord, VK, LinkedIn, GitHub, Snapchat, Gmail, mail accounts (Outlook, Firstmail, Rambler, Onet, Gazeta, GMX, Yahoo, Proton, Web.de), Google Voice, Google Ads Premium Subscriptions: Telegram Premium, Twitter Premium X, YouTube Premium, Spotify Premium, Netflix Premium, Discord Nitro, ChatGPT Plus/PRO, XBOX Game Pass Additional Services: Telegram Stars, proxies (IPv4, IPv6, ISP, Mobile), VPN (Outline, WireGuard, others), VDS/RDP servers Promo code: AUGUST2025 (10% discount) Payment: bank cards · cryptocurrency · other popular methods Relevant links: ➡ Online store: Click ➡ Telegram bot: Click ➡ SMM Panel: Click – promotion of your social media accounts Use our SMM Panel to boost Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, Trust Pilot, Apple Music, Tripadvisor, Snapchat, and other digital products. Get $1 for the first trial run of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). Updated TikTok account assortment and price changes: TIKTOK NEW ACCOUNTS TikTok Verified Account with a Blue Checkmark | Real account with genuine followers and activity | Officially verified by TikTok. Current price: $2500. TikTok High-Quality New AutoReg Account | Country: USA and Europe | Full access (email is included) | Price from $0.2 TIKTOK - Empty(clear) autoreg accounts II CONFIRMED BY @RAMBLER.RU/@FIRSTMAIL II EMAIL INCLUDED, Registered with RU IP | Price from $0.1 Autoreg TikTok accounts II Verified through email rambler.ru, email included II Gender MIX II Latin name II Empty profile II Registered with MIX IP | Price from $0.1 ACCOUNTS WITH FOLLOWERS Autoreg TikTok accounts II 100+ followers II Email verified @hotmail/@outlook/@firstmail/@rambler, email included in the package (working) II Gender: MIX II Latin name II Registered with MIX IP | Price from $0.39 Autoreg TikTok accounts II 1000+ followers II Email verified @hotmail/@outlook/@firstmail/@rambler, email included in the package (working) II Gender: MIX II Latin name II Open Stream + Can insert a link II Registered with MIX IP | Price from $2.5 Autoreg TikTok accounts II 5000 followers II Email verified @hotmail/@outlook/@firstmail/@rambler, email included in the package (working) II Gender: MIX II Latin name II Open Stream + Can insert a link II Registered with MIX IP | Price from $10 Autoreg TikTok accounts II 10,000+ followers II Email verified @hotmail/@outlook/@firstmail/@rambler, email included in the package (working) II Gender: MIX II Latin name II Open Stream + Can insert a link II Registered with MIX IP | Price from $19 OLD ACCOUNT WITHOUT/WITH FOLLOWERS TikTok High-Quality Account | Age: 2022-2024 | Country: MIX | Full access (email is included) | Price from $0.35 TikTok Old High-Quality Account with followers: 100-10,000 (amount of followers of your choice) | Age: 2022-2024 | Country: MIX | Full access (email is included) | Price from $0.89 TIKTOK ADS TIKTOK ADS ACCOUNTS | GEO: Europe | PREPAY | Manual Registration | Email access + Cookies + VAT Info | Price from $1 TIKTOK ADS ACCOUNTS | GEO: United States | PREPAY | Manual Registration | Email access + Cookies + VAT Info | Price from $1 TIKTOK ADS ACCOUNTS | GEO: United States | Business Verified + POSTPAY | Manual Registration | Email access + Cookies + VAT Info | Price from $3.5 TIKTOK ADS ACCOUNTS | GEO: Europe | Business Verified + POSTPAY | Manual Registration | Email access + Cookies + VAT Info | Price from $3.5 TIKTOK ADS ACCOUNTS | GEO: Europe | POSTPAY+BUSINESS CENTRE | 3 advertising accounts for running ads + 1 personal | May include coupons for advertising $20-$100 | Manual Registration | Email access + Cookies + VAT Info | Price from $8 TIKTOK ADS ACCOUNTS | GEO: United States | POSTPAY+BUSINESS CENTRE | 3 advertising accounts for running ads + 1 personal | May include coupons for advertising $20-$100 | Manual Registration | Email access + Cookies + VAT Info | Price from $8 For regular clients – additional discounts and promo codes! Discount 10% – 20% or BONUS $1 for registration If you want to receive a $1 BONUS for registration OR a 10% – 20% discount on your first purchase, you can leave a comment: "SEND ME BONUS, MY USERNAME IS..." You can also use a promo code for the first purchase: SOCNET (15% discount) Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ➡ Discord: socnet_support ➡ Discord Server: https://discord.gg/y9AStFFsrh ➡ ✉ Email: solomonbog@socnet.store Also via these contacts you can: — Consult about wholesale purchases — Establish a partnership (current partners: https://socnet.bgng.io/partners ) — Become our supplier SocNet – Digital Goods and Premium Subscriptions Store  
    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market Auto Buy Store  : https://utchiha-market.mysellauth.com/ Not sure if we’re legit? Check Our server — real reviews, real buyers https://discord.gg/4EPpYhe2HA  | https://campsite.bio/utchihaamkt
    • Price Update on TikTok Accounts and New Products. In traffic arbitrage, TikTok accounts play a key role. The success of advertising campaigns and, consequently, the income of an arbitrager directly depend on their quality. Reliable and high-quality accounts provide stability, trust, and long-term results in promotion. With us, you will find only verified TikTok accounts suitable for launching advertising campaigns, growing audiences, and scaling profits. The right account choice is the foundation of effective arbitrage! Full assortment of our online store: Accounts: Telegram, Facebook, Reddit, Twitter (X), Instagram, YouTube, TikTok, Discord, VK, LinkedIn, GitHub, Snapchat, Gmail, mail accounts (Outlook, Firstmail, Rambler, Onet, Gazeta, GMX, Yahoo, Proton, Web.de), Google Voice, Google Ads Premium Subscriptions: Telegram Premium, Twitter Premium X, YouTube Premium, Spotify Premium, Netflix Premium, Discord Nitro, ChatGPT Plus/PRO, XBOX Game Pass Additional Services: Telegram Stars, proxies (IPv4, IPv6, ISP, Mobile), VPN (Outline, WireGuard, others), VDS/RDP servers Promo code: AUGUST2025 (10% discount) Payment: bank cards · cryptocurrency · other popular methods Relevant links: ➡ Online store: Click ➡ Telegram bot: Click ➡ SMM Panel: Click – promotion of your social media accounts Use our SMM Panel to boost Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, Trust Pilot, Apple Music, Tripadvisor, Snapchat, and other digital products. Get $1 for the first trial run of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). Updated TikTok account assortment and price changes: TIKTOK NEW ACCOUNTS TikTok Verified Account with a Blue Checkmark | Real account with genuine followers and activity | Officially verified by TikTok. Current price: $2500. TikTok High-Quality New AutoReg Account | Country: USA and Europe | Full access (email is included) | Price from $0.2 TIKTOK - Empty(clear) autoreg accounts II CONFIRMED BY @RAMBLER.RU/@FIRSTMAIL II EMAIL INCLUDED, Registered with RU IP | Price from $0.1 Autoreg TikTok accounts II Verified through email rambler.ru, email included II Gender MIX II Latin name II Empty profile II Registered with MIX IP | Price from $0.1 ACCOUNTS WITH FOLLOWERS Autoreg TikTok accounts II 100+ followers II Email verified @hotmail/@outlook/@firstmail/@rambler, email included in the package (working) II Gender: MIX II Latin name II Registered with MIX IP | Price from $0.39 Autoreg TikTok accounts II 1000+ followers II Email verified @hotmail/@outlook/@firstmail/@rambler, email included in the package (working) II Gender: MIX II Latin name II Open Stream + Can insert a link II Registered with MIX IP | Price from $2.5 Autoreg TikTok accounts II 5000 followers II Email verified @hotmail/@outlook/@firstmail/@rambler, email included in the package (working) II Gender: MIX II Latin name II Open Stream + Can insert a link II Registered with MIX IP | Price from $10 Autoreg TikTok accounts II 10,000+ followers II Email verified @hotmail/@outlook/@firstmail/@rambler, email included in the package (working) II Gender: MIX II Latin name II Open Stream + Can insert a link II Registered with MIX IP | Price from $19 OLD ACCOUNT WITHOUT/WITH FOLLOWERS TikTok High-Quality Account | Age: 2022-2024 | Country: MIX | Full access (email is included) | Price from $0.35 TikTok Old High-Quality Account with followers: 100-10,000 (amount of followers of your choice) | Age: 2022-2024 | Country: MIX | Full access (email is included) | Price from $0.89 TIKTOK ADS TIKTOK ADS ACCOUNTS | GEO: Europe | PREPAY | Manual Registration | Email access + Cookies + VAT Info | Price from $1 TIKTOK ADS ACCOUNTS | GEO: United States | PREPAY | Manual Registration | Email access + Cookies + VAT Info | Price from $1 TIKTOK ADS ACCOUNTS | GEO: United States | Business Verified + POSTPAY | Manual Registration | Email access + Cookies + VAT Info | Price from $3.5 TIKTOK ADS ACCOUNTS | GEO: Europe | Business Verified + POSTPAY | Manual Registration | Email access + Cookies + VAT Info | Price from $3.5 TIKTOK ADS ACCOUNTS | GEO: Europe | POSTPAY+BUSINESS CENTRE | 3 advertising accounts for running ads + 1 personal | May include coupons for advertising $20-$100 | Manual Registration | Email access + Cookies + VAT Info | Price from $8 TIKTOK ADS ACCOUNTS | GEO: United States | POSTPAY+BUSINESS CENTRE | 3 advertising accounts for running ads + 1 personal | May include coupons for advertising $20-$100 | Manual Registration | Email access + Cookies + VAT Info | Price from $8 For regular clients – additional discounts and promo codes! Discount 10% – 20% or BONUS $1 for registration If you want to receive a $1 BONUS for registration OR a 10% – 20% discount on your first purchase, you can leave a comment: "SEND ME BONUS, MY USERNAME IS..." You can also use a promo code for the first purchase: SOCNET (15% discount) Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ➡ Discord: socnet_support ➡ Discord Server: https://discord.gg/y9AStFFsrh ➡ ✉ Email: solomonbog@socnet.store Also via these contacts you can: — Consult about wholesale purchases — Establish a partnership (current partners: https://socnet.bgng.io/partners ) — Become our supplier SocNet – Digital Goods and Premium Subscriptions Store  
    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market Auto Buy Store  : https://utchiha-market.mysellauth.com/ Not sure if we’re legit? Check Our server — real reviews, real buyers https://discord.gg/4EPpYhe2HA  | https://campsite.bio/utchihaamkt
    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market Auto Buy Store  : https://utchiha-market.mysellauth.com/ Not sure if we’re legit? Check Our server — real reviews, real buyers https://discord.gg/4EPpYhe2HA  | https://campsite.bio/utchihaamkt
  • 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