FenX писал(а):
правильный запрос такой, в одну строку:
Аха, полегчало=) вроде даже нормально дошел до конца гайда=)
А вот тут:
Код: Выделить всё
$ $ mysql --user=eathena --password=<your_password> --database=ea...
так и должно быть
$ $ ?
Мдее...
Код: Выделить всё
snowmini# mysql --user=eathena --password=223344 --database=eathena_srv --execute="INSERT INTO `login` (userid,user_pass,sex,email,level) VALUES ('ADM', 'ADMPASS', 'M', '11@11.com', 99)"
Не является login-шеллом.
ERROR 1064 (42000) at line 1: 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 '(userid,user_pass,sex,email,level) VALUES ('ADM', 'ADMPASS', 'M', '11@11.com', 9' at line 1

что с ним делать та?
Сделал вот так:
Код: Выделить всё
snowmini# mysql --user=eathena --password=223344
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 5.0.77 FreeBSD port: mysql-server-5.0.77_1
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> database=eathena_srv
-> execute="INSERT INTO `login` (userid,user_pass,sex,email,level) VALUES ('ADM', 'ADMPASS', 'M', 'admin@myserv.com', 99)"
-> Aborted
snowmini#
Эт правильно?
Ну и в итоге не пашед:(
Код: Выделить всё
[fern@snowmini /usr/local/eathena]$ [Status]: Memory manager initialised: log/login-server_sql.leaks
(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)
( eAthena Development Team presents )
( ______ __ __ )
( /\ _ \/\ \__/\ \ )
( __\ \ \_\ \ \ ,_\ \ \___ __ ___ __ )
( /'__`\ \ __ \ \ \/\ \ _ `\ /'__`\/' _ `\ /'__`\ )
( /\ __/\ \ \/\ \ \ \_\ \ \ \ \/\ __//\ \/\ \/\ \_\.\_ )
( \ \____\\ \_\ \_\ \__\\ \_\ \_\ \____\ \_\ \_\ \__/.\_\ )
( \/____/ \/_/\/_/\/__/ \/_/\/_/\/____/\/_/\/_/\/__/\/_/ )
( _ _ _ _ _ _ _ _ _ _ _ _ _ )
( / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ )
( ( e | n | g | l | i | s | h ) ( A | t | h | e | n | a ) )
( \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ )
( )
(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)
[Info]: SVN Revision: '13981'.
[Info]: Reading configuration file conf/login_athena.conf...
[Status]: set login_port : 6900
[Info]: Console Silent Setting: 0
[Info]: Reading configuration file conf/inter_athena.conf...
[Info]: Reading configuration file conf/import/inter_conf.txt...
[Info]: Finished reading conf/import/inter_conf.txt.
[Info]: Finished reading conf/inter_athena.conf.
[Info]: Reading configuration file conf/import/login_conf.txt...
[Info]: Finished reading conf/import/login_conf.txt.
[Info]: Finished reading conf/login_athena.conf.
[Info]: Reading the configuration file conf/subnet_athena.conf...
[Status]: Read information about 1 subnetworks.
[Status]: Memory manager initialised: log/char-server_sql.leaks
(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)
( eAthena Development Team presents )
( ______ __ __ )
( /\ _ \/\ \__/\ \ )
( __\ \ \_\ \ \ ,_\ \ \___ __ ___ __ )
( /'__`\ \ __ \ \ \/\ \ _ `\ /'__`\/' _ `\ /'__`\ )
( /\ __/\ \ \/\ \ \ \_\ \ \ \ \/\ __//\ \/\ \/\ \_\.\_ )
( \ \____\\ \_\ \_\ \__\\ \_\ \_\ \____\ \_\ \_\ \__/.\_\ )
( \/____/ \/_/\/_/\/__/ \/_/\/_/\/____/\/_/\/_/\/__/\/_/ )
( _ _ _ _ _ _ _ _ _ _ _ _ _ )
( / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ )
( ( e | n | g | l | i | s | h ) ( A | t | h | e | n | a ) )
( \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ )
( )
(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)
[Info]: SVN Revision: '13981'.
[Info]: Reading configuration file conf/char_athena.conf...
[Status]: eAthena server has been initialized
[Info]: Console Silent Setting: 0
[Info]: Reading configuration file conf/import/char_conf.txt...
[Info]: Done reading conf/import/char_conf.txt.
[Info]: Done reading conf/char_athena.conf.
[Info]: Reading the configuration file conf/subnet_athena.conf...
[Status]: Read information about 1 subnetworks.
[Info]: Reading file conf/inter_athena.conf...
[Status]: Memory manager initialised: log/map-server_sql.leaks
(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)
( eAthena Development Team presents )
( ______ __ __ )
( /\ _ \/\ \__/\ \ )
( __\ \ \_\ \ \ ,_\ \ \___ __ ___ __ )
( /'__`\ \ __ \ \ \/\ \ _ `\ /'__`\/' _ `\ /'__`\ )
( /\ __/\ \ \/\ \ \ \_\ \ \ \ \/\ __//\ \/\ \/\ \_\.\_ )
( \ \____\\ \_\ \_\ \__\\ \_\ \_\ \____\ \_\ \_\ \__/.\_\ )
( \/____/ \/_/\/_/\/__/ \/_/\/_/\/____/\/_/\/_/\/__/\/_/ )
( _ _ _ _ _ _ _ _ _ _ _ _ _ )
( / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ )
( ( e | n | g | l | i | s | h ) ( A | t | h | e | n | a ) )
( \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ )
( )
(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)
[Info]: SVN Revision: '13981'.
[Info]: Console Silent Setting: 0
[Error]: Using the default user/password s1/p1 is NOT RECOMMENDED.
[Notice]: Please edit your 'login' table to create a proper inter-server user/password (gender 'S')
[Notice]: and then edit your user/password in conf/map_athena.conf (or conf/import/map_conf.txt)
[Error]:
Not all IP addresses in map_athena.conf configured, autodetecting...
[Info]: Defaulting to 127.0.0.1 as our IP address
[Info]: Map Server IP Address : '127.0.0.1' -> '127.0.0.1'.
[Info]: Char Server IP Address : '127.0.0.1' -> '127.0.0.1'.
[Info]: Reading file conf/import/inter_conf.txt...
[Info]: Done reading conf/import/inter_conf.txt.
[Info]: Done reading conf/inter_athena.conf.
[Error]: Using the default user/password s1/p1 is NOT RECOMMENDED.
[Notice]: Please edit your 'login' table to create a proper inter-server user/password (gender 'S')
[Notice]: And then change the user/password to use in conf/char_athena.conf (or conf/import/char_conf.txt)
[Info]: Finished reading the char-server configuration.
[Info]: interserver initialize...
[Info]: reading file conf/inter_athena.conf...
[Status]: set char_server_ip : 127.0.0.1
[Status]: set char_server_port : 3306
[Status]: set char_server_id : ragnarok
[Status]: set char_server_pw : ragnarok
[Status]: set char_server_db : ragnarok
[Info]: reading file conf/import/inter_conf.txt...
[Status]: set char_server_ip : 127.0.0.1
[Status]: set char_server_port : 3306
[Status]: set char_server_id : eathena
[Status]: set char_server_pw : 223344
[Status]: set char_server_db : eathena_srv
[Info]: done reading conf/import/inter_conf.txt.
[Info]: done reading conf/inter_athena.conf.
[Info]: Connect Character DB server.... (Character Server)
[Status]: Using SQL dbs: no
[Status]: Using SQL dbs: yes
[Notice]: Logging Item Picks to table `picklog`
[Notice]: Logging GM Level 40 Commands to table `atcommandlog`
[Notice]: Logging Item Picks to file `log/picklog.log`.txt
[Notice]: Logging GM Level 40 Commands to file `log/atcommandlog.log`.txt
[SQL]: Access denied for user 'eathena'@'localhost' to database 'eathena_log'
[Debug]: at loginlog_sql.c:110
[Info]: Connecting to the Map DB Server....
[Status]: connect success! (Map Server Connection)
[Status]: Loading maps (using db/map_cache.dat as map cache)...
[Info]: Finished reading the inter-server configuration.
[Info]: Initializing char server.
[Info]: Begin Initializing.......
[Status]: Chars per Account: 'Unlimited'.......
[Info]: Finished initilizing.......
[Info]: char server initialized.
[Status]: Defaulting to 127.0.0.1 as our IP address
[Info]: Cleaning the 'char' table...
[Info]: Cleaning the 'guild' table...
[Info]: Cleaning the 'guild_member' table...
[Info]: End of char server initilization function.
[Info]: open port 6121.....
[Status]: The char-server is ready (Server is listening on the port 6121).
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 127.0.0.1:6900
[Error]: make_connection: connect failed (socket #5, code 61)!
[Info]: Successfully loaded '707' maps.
[Status]: Done reading packet database from 'packet_db.txt'. Using default packet version: 23.
[Status]: Done reading '4694' entries in 'item_db'.
[Status]: Done reading '0' entries in 'item_db2'.
[Status]: Done reading 'item_group_db.txt'.
[Status]: Done reading '1' entries in 'item_avail.txt'.
[Status]: Done reading '11' entries in 'item_noequip.txt'.
[Status]: Done reading '447' entries in 'item_trade.txt'.
[Status]: Done reading '654' entries in 'db/skill_db.txt'.
[Status]: Done reading '447' entries in 'db/skill_require_db.txt'.
[Status]: Done reading '441' entries in 'db/skill_cast_db.txt'.
[Status]: Done reading '25' entries in 'db/skill_castnodex_db.txt'.
[Status]: Done reading '55' entries in 'db/skill_nocast_db.txt'.
[Status]: Done reading '76' entries in 'db/skill_unit_db.txt'.
[Status]: Done reading '145' entries in 'db/produce_db.txt'.
[Status]: Done reading '136' entries in 'db/create_arrow_db.txt'.
[Status]: Done reading '207' entries in 'db/abra_db.txt'.
[Status]: Done reading '970' entries in 'mob_db'.
[Status]: Done reading '0' entries in 'mob_db2'.
[Status]: Done reading '0' entries in 'mob_avail.txt'.
[Status]: Done reading 'mob_branch.txt'.
[Status]: Done reading 'mob_poring.txt'.
[Status]: Done reading 'mob_boss.txt'.
[Status]: Done reading 'mob_pouch.txt'.
[Error]: mob_skill: Non existant Mob id 1997 at db/mob_skill_db.txt, line 5195
[Error]: mob_skill: Non existant Mob id 1998 at db/mob_skill_db.txt, line 5200
[Error]: mob_skill: Non existant Mob id 1999 at db/mob_skill_db.txt, line 5205
[Status]: Done reading 'mob_skill_db.txt'.
[Status]: Done reading 'mob_skill_db2.txt'.
[Status]: Done reading 'mob_race2_db.txt'.
[Status]: Done reading 'exp.txt'.
[Status]: Done reading 'skill_tree.txt'.
[Status]: Done reading 'attr_fix.txt'.
[Status]: Done reading 'statpoint.txt'.
[Status]: Done reading 'db/job_db1.txt'.
[Status]: Done reading 'db/job_db2.txt'.
[Status]: Done reading 'db/size_fix.txt'.
[Status]: Done reading 'db/refine_db.txt'.
[Status]: Done reading '34' entries in 'castle_db.txt'.
[Status]: Done reading '15' entries in 'guild_skill_tree.txt'.
[Status]: Done reading '55' pets in 'pet_db.txt'.
[Status]: Done reading '8' homunculus in 'db/homunculus_db.txt'.
[Status]: Done reading '99' levels in 'exp_homun.txt'.
[Status]: Done reading 'homun_skill_tree.txt'.
[Status]: Done reading '36' mercenaries in 'db/mercenary_db.txt'.
[Status]: Done reading '82' entries in 'db/mercenary_skill_db.txt'.
[Status]: Done reading 'quest_db.txt'.
[Info]: Done loading '11151' NPCs:
-'2883' Warps
-'180' Shops
-'8088' Scripts
-'3864' Spawn sets
-'39545' Mobs Cached
-'0' Mobs Not Cached
[Status]: Event 'OnInit' executed with '1264' NPCs.
[Status]: Server is 'ready' and listening on port '5121'.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '5').
[Status]: Sending maps to char server...
[Status]: Event 'OnCharIfInit' executed with '0' NPCs.
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Event 'OnInterIfInitOnce' executed with '31' NPCs.
[Status]: Map-Server 0 connected: 707 maps, from IP 127.0.0.1 port 5121.
[Status]: Map-server 0 loading complete.
[Status]: Map sending complete. Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 127.0.0.1:6900
[Error]: make_connection: connect failed (socket #6, code 61)!
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 127.0.0.1:6900
[Error]: make_connection: connect failed (socket #6, code 61)!
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 127.0.0.1:6900
[Error]: make_connection: connect failed (socket #6, code 61)!
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 127.0.0.1:6900
[Error]: make_connection: connect failed (socket #6, code 61)!
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 127.0.0.1:6900
[Error]: make_connection: connect failed (socket #6, code 61)!
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 127.0.0.1:6900
[Error]: make_connection: connect failed (socket #6, code 61)!
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 127.0.0.1:6900
[Error]: make_connection: connect failed (socket #6, code 61)!
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 127.0.0.1:6900
[Error]: make_connection: connect failed (socket #6, code 61)!
[fern@snowmini /usr/local/eathena]$ ./athena-start stop
[Info]: Doing final stage...
[Notice]: Sending all users offline.
[Info]: ok! all done...
[Info]: Memory manager: No memory leaks found.
[Warning]: Map Server disconnected from Char Server.
[Status]: Terminating...
[Status]: Close Map DB Connection....
[Status]: Successfully terminated.
[Info]: Memory manager: No memory leaks found.
Или логин сервер запускается отдельно.... Или я где-то все таки накосячил
