Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: How to MySQL + COD2 ?

  1. #1
    Private First Class
    Join Date
    Mar 2016
    Posts
    134
    Thanks
    48
    Thanked 11 Times in 10 Posts

    Question How to MySQL + COD2 ?

    Step by step please :/ i want to make such commands like !login , !register , !aliases ect...

  2. #2
    Private Whiskas's Avatar
    Join Date
    Jan 2015
    Posts
    84
    Thanks
    69
    Thanked 20 Times in 17 Posts
    You want to make or get?

    Check Asynchronous Mysql

    https://killtube.org/showthread.php?...ll=1#post13719

    Add this as new gsc file into the mod folder and edit init variables at the beginning of the script.

    Btw. Do you even have installed mysql?

  3. The Following User Says Thank You to Whiskas For This Useful Post:

    suck000 (14th April 2016)

  4. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  5. #4
    Private First Class
    Join Date
    Mar 2016
    Posts
    134
    Thanks
    48
    Thanked 11 Times in 10 Posts
    I installed phpmyadmin & mysql whiskas

  6. #5
    Private First Class
    Join Date
    Mar 2016
    Posts
    134
    Thanks
    48
    Thanked 11 Times in 10 Posts
    Whiskas i got a segmentation fault when starting the server ! how to fix it ? i tried to change bind line in /etc/init.d/my.cnf to localhost & my machine ip but i still get that problem..

  7. #6
    Private Whiskas's Avatar
    Join Date
    Jan 2015
    Posts
    84
    Thanks
    69
    Thanked 20 Times in 17 Posts
    Show me your init variables.

  8. The Following User Says Thank You to Whiskas For This Useful Post:

    suck000 (14th April 2016)

  9. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    GUYS I JUST HAD A SEGFAULT OMFG HELP ME

    Provide some info dude. Read how to ask for help. Learn some scripting. Learn how to debug your own problems.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  10. #8
    Private First Class
    Join Date
    Mar 2016
    Posts
    134
    Thanks
    48
    Thanked 11 Times in 10 Posts
    This is what i got when i debugged
    Code:
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  0xb71327cb in mysql_options ()
       from /usr/lib/i386-linux-gnu/libmysqlclient.so.18
    (gdb) bt
    #0  0xb71327cb in mysql_options ()
       from /usr/lib/i386-linux-gnu/libmysqlclient.so.18
    #1  0xb7740cb1 in gsc_mysql_real_connect () from libcod/bin/libcod2_1_0.so
    #2  0x080806a0 in ?? ()
    #3  0x080838ca in ?? ()
    #4  0x080839eb in ?? ()
    #5  0x08115eaf in ?? ()
    #6  0x0810700e in ?? ()
    #7  0x08090d12 in ?? ()
    #8  0x08090dbf in ?? ()
    #9  0x08091f94 in ?? ()
    #10 0x0808ad5f in ?? ()
    #11 0x08060724 in ?? ()
    #12 0x0805fc79 in ?? ()
    #13 0x0808b228 in ?? ()
    #14 0x08060724 in ?? ()
    #15 0x0805fdf5 in ?? ()
    #16 0x0805fe07 in ?? ()
    #17 0x08061ff1 in ?? ()
    #18 0x08062038 in ?? ()
    #19 0x080d2ace in ?? ()
    #20 0xb7450a83 in __libc_start_main (main=0x80d2990, argc=24, argv=0xbf8f8014,
        init=0x8049b90, fini=0x8139b50, rtld_fini=0xb7779180 <_dl_fini>,

  11. #9
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Still only giving the output, not the input.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  12. #10
    Private First Class
    Join Date
    Mar 2016
    Posts
    134
    Thanks
    48
    Thanked 11 Times in 10 Posts
    I think i fixed it ! I changed user & pass to my username & password and it's all good ! That was the problem , i don't get segfault anymore.. how do i know that mysql is running probably ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •