Mysql Web

Results 1 to 7 of 7
  1. #1
    Apprentice mafikmail is offline
    MemberRank
    Jan 2014 Join Date
    SeverskLocation
    18Posts

    Mysql Web

    Help, I enter all the data in the config, all the true test, and gives error seravno : Error connecting to database

    delete : define( 'WR_INC', true ); - produces an error : No direct script access allowed!

    give as pravelno customize Web CMS

    Code:
    <?php
    // Security
    define( 'WR_INC', true );
    
    
    // Game Server
    define( 'GS_HOST', '127.0.0.1' );
    define( 'GS_PORT', 5340 );
    
    
    // Login Server
    define( 'LS_HOST', '127.0.0.1' );
    define( 'LS_PORT', 5330 );
    
    
    // Database
    define( 'DB_HOST', '127.0.0.1' );
    define( 'DB_PORT', 3306 );
    define( 'DB_USER', 'root' );
    define( 'DB_PASS', 'my password' );
    define( 'DB_NAME', 'my base' );
    
    
    // Website
    define( 'WEB_NAME', 'WarRock' );
    define( 'WEB_URL', 'http://127.0.0.1' );
    define( 'WEB_REGISTER_VIP', 3 ); // Premium Gold (false = disabled)
    define( 'WEB_REGISTER_VIP_DURATION', 864000 ); // Premium duration
    define( 'WEB_REGISTER_MONEY', 100000 );
    define( 'WEB_REGISTER_CASH', 20000 );
    define( 'WEB_RANKING_USERS', 20 ); // Users per page
    define( 'WEB_DEBBUG_LEVEL', false );
    
    
    // Other URLs
    define( 'FORUM_URL', '#' );
    define( 'FACEBOOK_URL', '' );
    define( 'YOUTUBE_URL', '' );
    define( 'GOOGLEBUZZ_URL', '' );
    define( 'GOOGLEPLUS_URL', '' );
    define( 'TWITTER_URL', '' );
    
    
    // Setting web options
    error_reporting( WEB_DEBBUG_LEVEL ); 
    session_start();


  2. #2
    Enthusiast Blure is offline
    MemberRank
    Dec 2013 Join Date
    The NetherlandsLocation
    41Posts

    Re: Mysql Web

    Code:
    define( 'WR_INC', true );


    This one is just a protect so users can't go to http://(yourwebsite)/inc/pages/(file).php
    So don't remove it, but "
    Error connecting to database" means there is no database with the name you chosen at DB_NAME.

  3. #3
    ◝(⁰▿⁰)◜Smile◝ (⁰▿⁰)◜ Taiga is offline
    DeveloperRank
    May 2007 Join Date
    InternetLocation
    2,464Posts

    Re: Mysql Web

    Quote Originally Posted by Blure View Post
    This one is just a protect so users can't go to http://(yourwebsite)/inc/pages/(file).php
    So don't remove it, but "
    Error connecting to database" means there is no database with the name you chosen at DB_NAME.
    In addition what Blure said: The username might be wrong or even the password.
    And do not delete this line, this a crucial part to avoid direct script call (or hacking attempts).
    Code:
    define( 'WR_INC', true );

  4. #4
    Apprentice mafikmail is offline
    MemberRank
    Jan 2014 Join Date
    SeverskLocation
    18Posts

    Re: Mysql Web

    I write the password and username and database right, because other cms work perfectly only there a completely different configuration to hook up the base, with a cms danym config not work kogbuto something blakiruet , please help to understand

  5. #5
    Enthusiast Blure is offline
    MemberRank
    Dec 2013 Join Date
    The NetherlandsLocation
    41Posts

    Re: Mysql Web

    Quote Originally Posted by mafikmail View Post
    I write the password and username and database right, because other cms work perfectly only there a completely different configuration to hook up the base, with a cms danym config not work kogbuto something blakiruet , please help to understand
    I'm sorry, but I don't understand your post..

  6. #6
    ◝(⁰▿⁰)◜Smile◝ (⁰▿⁰)◜ Taiga is offline
    DeveloperRank
    May 2007 Join Date
    InternetLocation
    2,464Posts

    Re: Mysql Web

    Try using a different CMS?

  7. #7
    Apprentice mafikmail is offline
    MemberRank
    Jan 2014 Join Date
    SeverskLocation
    18Posts

    Re: Mysql Web

    sorry translate via google, other cms same config



Advertisement