回复: 显IP城市插件的mysql安装提示
Post by olol数据库已经存在了,不用创建
另外,数据库最好重新创建,比如,这个插件是ip库,就可以起名为ip,或ipku
方便日后的维护,amx是默认的管理amxx用户帐户的库,最好不要混用
以后,你还会接触到superhero、war3ft等等需要mysql的地方,现在做个良好的规划是个比较不错的习惯 :)
这方面我是菜鸟,还望多多指点,我不知道如何重新创建数据库,我已经有ip.sql了,但不知道如何用,ip插件也有,用上去没任何效果。帮我看看我mysql对吗,有图。
回复: 显IP城市插件的mysql安装提示
不知道ip库如何导入到Mysql是不是把ip.sql这个文件放到addons\amxmodx\data,开启mysql模块再启用插件就好了??? :mad::mad::mad:
回复: 显IP城市插件的mysql安装提示
导入,不是复制了事查查资料吧
回复: 显IP城市插件的mysql安装提示
努力中,哎。关于显示城市IP的资料都看过了,还是………………………………:burn:
回复: 显IP城市插件的mysql安装提示
你只查一步,导入后就okmysql -u用户名 -p密码 ip数据库名 < x:\目录\ip.sql
上面的命令要在mysql的bin目录下执行,完成即ok
如果你设置远程帐号的话,也可以帮你远程搞定,即使你没有数据库资料也可以
回复: 显IP城市插件的mysql安装提示
QQ远程行吗?可以的话加我QQ83640700 :confused:如何死后在观察角度也可以显示玩家的城市地址哦:boss:
回复: 显IP城市插件的mysql安装提示
在DOS下这样是不是已经成功了呀D:\Server\MySQL\bin>mysql -u 127.0.0.1 -p amxc:\ipsql
mysqlVer 12.22 Distrib 4.0.17, for Win95/Win98 (i32)
Copyright (C) 2002 MySQL AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Usage: mysql
-?, --help Display this help and exit.
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
-A, --no-auto-rehash
No automatic rehashing. One has to use 'rehash' to get
table and field completion. This gives a quicker start o
mysql and disables rehashing on reconnect. WARNING:
options deprecated; use --disable-auto-rehash instead.
-B, --batch Print results with a tab as separator, each row on new
line. Doesn't use history file.
--character-sets-dir=name
Directory where character sets are.
--default-character-set=name
Set the default character set.
-C, --compress Use compression in server/client protocol.
-D, --database=name Database to use.
-e, --execute=nameExecute command and quit. (Output like with --batch).
-E, --vertical Print the output of a query (rows) vertically.
-f, --force Continue even if we get an sql error.
-g, --no-named-commands
Named commands are disabled. Use \* form only, or use
named commands only in the beginning of a line ending
with a semicolon (;) Since version 10.9 the client now
starts with this option ENABLED by default! Disable with
'-G'. Long format commands still work from the first
line. WARNING: option deprecated; use
--disable-named-commands instead.
-G, --named-commands
Enable named commands. Named commands mean this program'
internal commands; see mysql> help . When enabled, the
named commands can be used from any line of the query,
otherwise only from the first line, before an enter.
Disable with --disable-named-commands. This option is
disabled by default.
-i, --ignore-spaces Ignore space after function names.
--local-infile Enable/disable LOAD DATA LOCAL INFILE.
-b, --no-beep Turn off beep on error.
-h, --host=name Connect to host.
-H, --html Produce HTML output.
-X, --xml Produce XML output
--line-numbers Write line numbers for errors.
-L, --skip-line-numbers
Don't write line number for errors. WARNING: -L is
deprecated, use long version of this option instead.
--no-tee Disable outfile. See interactive help (\h) also. WARNING
option deprecated; use --disable-tee instead
-n, --unbuffered Flush buffer after each query.
--column-names Write column names in results.
-N, --skip-column-names
Don't write column names in results. WARNING: -N is
deprecated, use long version of this options instead.
-O, --set-variable=name
Change the value of a variable. Please note that this
option is deprecated; you can set variables directly wit
--variable-name=value.
-o, --one-databaseOnly update the default database. This is useful for
skipping updates to other database in the update log.
-p, --password[=name]
Password to use when connecting to server. If password i
not given it's asked from the tty.
-W, --pipe Use named pipes to connect to server.
-P, --port=# Port number to use for connection.
--prompt=name Set the mysql prompt to this value.
-q, --quick Don't cache result, print it row by row. This may slow
down the server if the output is suspended. Doesn't use
history file.
-r, --raw Write fields without conversion. Used with --batch
-s, --silent Be more silent.
-S, --socket=name Socket file to use for connection.
-t, --table Output in table format.
-T, --debug-info Print some debug info at exit.
--tee=name Append everything into outfile. See interactive help (\h
also. Does not work in batch mode.
-u, --user=name User for login if not current user.
-U, --safe-updatesOnly allow UPDATE and DELETE that uses keys.
-U, --i-am-a-dummySynonym for option --safe-updates, -U.
-v, --verbose Write more. (-v -v -v gives the table output format)
-V, --version Output version information and exit.
-w, --wait Wait and retry if connection is down.
--connect_timeout=#
--max_allowed_packet=#
--net_buffer_length=#
--select_limit=#
--max_join_size=#
Default options are read from the following files in the given order:
C:\WINNT\my.ini C:\my.cnf
The following groups are read: mysql client
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit
--no-defaults Don't read default options from any options file
--defaults-file=# Only read default options from the given file #
--defaults-extra-file=# Read this file after the global files are read
Variables (--variable-name=value)
and boolean options {FALSE|TRUE}Value (after reading options)
--------------------------------- -----------------------------
auto-rehash TRUE
character-sets-dir (No default value)
default-character-set (No default value)
compress FALSE
database (No default value)
vertical FALSE
force FALSE
named-commands FALSE
local-infile FALSE
no-beep FALSE
host (No default value)
html FALSE
xml FALSE
line-numbers TRUE
unbuffered FALSE
column-names TRUE
port 3306
prompt mysql>
quick FALSE
raw FALSE
socket (No default value)
table FALSE
debug-info FALSE
user 127.0.0.1
safe-updates FALSE
i-am-a-dummy FALSE
connect_timeout 0
max_allowed_packet 16777216
net_buffer_length 16384
select_limit 1000
max_join_size 1000000
回复: 显IP城市插件的mysql安装提示
好啊,谢谢楼主的帖子..回复: 显IP城市插件的mysql安装提示
我好像在那看到了5.0了哦?是不是应该下边5.0喇?
回复: 显IP城市插件的mysql安装提示
Post by AE86在DOS下这样是不是已经成功了呀
D:\Server\MySQL\bin>mysql -u 127.0.0.1 -p amxc:\ipsql
mysqlVer 12.22 Distrib 4.0.17, for Win95/Win98 (i32)
Copyright (C) 2002 MySQL AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it u...
这好像只是帮助文件吧.
:mad: