
e que o MySQL vai ficar no meu PC e a senhas estão padroes .. root e a senha ta nula.. ai eu queria mudar !!!!
obrigado
Posted 23/02/2004, 12:11
Posted 23/02/2004, 12:36
Posted 23/02/2004, 12:46
Ok, vou tentar aqui.. vlw pela resposta ffmm2003 !!!Se vc acessar o seu servidor mysql usando o phpMyAdmin ou algo do tipo, vc vai ver que tem um bd de nome mysql, e dentro dele tem uma tabela users (ou user). Nessa tabela estão todos os users que poderão acessar o servidor. Nessa tabela tem vários campos, incluindo nome de usuario, senha (de uma forma codificada) e host (de qual host o user pode acessar).
Para alterar os usuários, é só ir nessa tabela, fazer as alterações, e depois executar uma query assim (naum sei se pelo phpMyAdmin da pra fazer isso, se não der, abra o mysql pelo aplicativo que vem com ele):
FLUSH PRIVILEGES;
Ai ele vai alterar segundo a tabela e pronto, vc alterou os users!
Edição feita por: Goku Jr, 23/02/2004, 13:09.
Posted 23/02/2004, 13:14
Posted 23/02/2004, 13:21
#Uncomment or Add only the keys that you know how works. #Read the MySQL Manual for instructions [mysqld] basedir=C:/MYSQL #bind-address=127.0.0.1 datadir=C:/MYSQL/data language=C:/MYSQL/share/portuguese #slow query log#= #tmpdir#= #port=3306 #set-variable=key_buffer=16M [WinMySQLadmin] Server=C:/MYSQL/bin/mysqld-opt.exe user=USUARIO password=SENHAedita o arquivo my.ini dentro da pasta c:\windows\
Posted 23/02/2004, 13:47
ae ffmm2003 eu alterei os dois primeiros registros.. eram 4.. os dois primeiros estava root e a senha tava em branco e nos dois ultimos registros estava tudo em branco !!!! bom eu alterei e depois fui noTipo, vc mudou os dados na tabela users? Depois vc vai em SQL (tipo uma aba), e digita isso (FLUSH PRIVILEGES) no textbox.
Fazer procura(s) SQL no banco de dados mysql [Documentação] : Mostra esta query novamente Ou Localização do arquivo texto :
Seu comando SQL foi executado com sucesso comando SQL : FLUSH PRIVILEGES
Edição feita por: Goku Jr, 23/02/2004, 13:54.
Posted 23/02/2004, 13:52
Posted 23/02/2004, 13:57
ta, tipo se eu deixa o host localhost.. ninguem consegue acessar o meu banco de dados né ? tipo mesmo colocando o IP né ? só local !!!Tente deixar somente 1 usuário, com o nome de usuário e senha preenchidos, e host como localhost. E depois de flush privileges.
Posted 23/02/2004, 14:01
Posted 23/02/2004, 14:04
Posted 05/03/2004, 18:48
[WinMySQLAdmin] Server=C:/apache/mysql/bin/mysqld-nt.exe user=admin password=
Posted 05/03/2004, 20:04
Posted 08/03/2004, 20:51
# Example mysql config file.
# Copy this file to c:\my.cnf to set global options
#
# One can use all long options that the program supports.
# Run the program with --help to get a list of available options
# This will be passed to all mysql clients
[client]
#password=my_password
port=3306
#socket=MySQL
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# The MySQL server
[mysqld]
skip-innodb
bind-address=127.0.0.1
port=3306
#socket=MySQL
skip-locking
set-variable = key_buffer=16K
set-variable = max_allowed_packet=1M
set-variable = thread_stack=64K
set-variable = table_cache=4
set-variable = sort_buffer=64K
set-variable = net_buffer_length=2K
server-id = 1
# Uncomment the following if you want to log updates
#log-bin
# Uncomment the following rows if you move the MySQL distribution to another
# location
basedir = C:/Arquivos de programas/EasyPHP/mysql/
datadir = C:/Arquivos de programas/EasyPHP/mysql/data/
# Uncomment the following if you are NOT using BDB tables
#skip-bdb
# Uncomment the following if you are using Innobase tables
#innodb_data_file_path = ibdata1:100M
#innodb_data_home_dir = c:\ibdata
#innodb_log_group_home_dir = c:\iblogs
#innodb_log_arch_dir = c:\iblogs
#set-variable = innodb_mirrored_log_groups=1
#set-variable = innodb_log_files_in_group=3
#set-variable = innodb_log_file_size=5M
#set-variable = innodb_log_buffer_size=8M
#innodb_flush_log_at_trx_commit=1
#innodb_log_archive=0
#set-variable = innodb_buffer_pool_size=16M
#set-variable = innodb_additional_mem_pool_size=2M
#set-variable = innodb_file_io_threads=4
#set-variable = innodb_lock_wait_timeout=50
[mysqldump]
quick
set-variable = max_allowed_packet=16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
set-variable = key_buffer=8M
set-variable = sort_buffer=8M
[myisamchk]
set-variable = key_buffer=8M
set-variable = sort_buffer=8M
[mysqlhotcopy]
interactive-timeout
Posted 08/03/2004, 21:39
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)