Could you post the output of below SQL commands & also post the error log contents
show global variables;
Main Topics
Browse All TopicsHi!
I have some problem with a MySQL Server 5.1 that is running on OpenVMS.
I create 2 users, on with a password and the other without any.
However, when we stop the server and restarts it, the users disappear and we have to recreate them.
mysql> show grants for 'general_user2';
+-------------------------
| Grants for general_user2@% |
+-------------------------
| GRANT USAGE ON *.* TO 'general_user2'@'%' IDENTIFIED BY PASSWORD '*2470C0C06DEE42FD1618BB99
| GRANT SELECT ON "grhbd\_prod".* TO 'general_user2'@'%' |
+-------------------------
2 rows in set (0.00 sec)
mysql> show grants for 'general_user';
+-------------------------
| Grants for general_user@% |
+-------------------------
| GRANT USAGE ON *.* TO 'general_user'@'%' |
| GRANT SELECT, EXECUTE ON "grhbd\_prod".* TO 'general_user'@'%' |
+-------------------------
2 rows in set (0.00 sec)
What needs to be done for the account to be "permanent" ?
Let me know if you need other information.. I'll try to answer fast.
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
mysql> show global variables;
+-------------------------
| Variable_name | Value |
+-------------------------
| auto_increment_increment | 1 |
| auto_increment_offset | 1 |
| autocommit | ON |
| automatic_sp_privileges | ON |
| back_log | 50 |
| basedir | /mysql051_root/vms/ |
| big_tables | OFF |
| binlog_cache_size | 1048576 |
| binlog_format | MIXED |
| bulk_insert_buffer_size | 4194304 |
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /mysql051_root/sql/share/c
| collation_connection | latin1_swedish_ci |
| collation_database | latin1_swedish_ci |
| collation_server | latin1_swedish_ci |
| completion_type | 0 |
| concurrent_insert | 1 |
| connect_timeout | 10 |
| datadir | /mysql051_root/data/ |
| date_format | %Y-%m-%d |
| datetime_format | %Y-%m-%d %H:%i:%s |
| default_week_format | 0 |
| delay_key_write | ON |
| delayed_insert_limit | 100 |
| delayed_insert_timeout | 300 |
| delayed_queue_size | 1000 |
| div_precision_increment | 4 |
| engine_condition_pushdown | ON |
| error_count | 0 |
| event_scheduler | ON |
| expire_logs_days | 0 |
| flush | OFF |
| flush_time | 0 |
| foreign_key_checks | ON |
| ft_boolean_syntax | + -><()~*:""&| |
| ft_max_word_len | 84 |
| ft_min_word_len | 4 |
| ft_query_expansion_limit | 20 |
| ft_stopword_file | (built-in) |
| general_log | OFF |
| general_log_file | /mysql051_root/data/ccr.lo
| group_concat_max_len | 1024 |
| have_compress | YES |
| have_crypt | YES |
| have_csv | YES |
| have_dynamic_loading | YES |
| have_geometry | YES |
| have_innodb | YES |
| have_ndbcluster | NO |
| have_openssl | DISABLED |
| have_partitioning | YES |
| have_query_cache | YES |
| have_rtree_keys | YES |
| have_ssl | DISABLED |
| have_symlink | YES |
| hostname | ccr.alcan.biz |
| identity | 0 |
| init_connect | |
| init_file | |
| init_slave | |
| innodb_additional_mem_pool
| innodb_autoextend_incremen
| innodb_autoinc_lock_mode | 1 |
| innodb_buffer_pool_size | 67108864 |
| innodb_checksums | ON |
| innodb_commit_concurrency | 0 |
| innodb_concurrency_tickets
| innodb_data_file_path | ibdata1:100M:autoextend |
| innodb_data_home_dir | /mysql051_root/data/ |
| innodb_doublewrite | ON |
| innodb_fast_shutdown | 1 |
| innodb_file_io_threads | 4 |
| innodb_file_per_table | OFF |
| innodb_flush_log_at_trx_co
| innodb_flush_method | |
| innodb_force_recovery | 0 |
| innodb_lock_wait_timeout | 120 |
| innodb_locks_unsafe_for_bi
| innodb_log_buffer_size | 8388608 |
| innodb_log_file_size | 33554432 |
| innodb_log_files_in_group | 3 |
| innodb_log_group_home_dir | /mysql051_root/data/ |
| innodb_max_dirty_pages_pct
| innodb_max_purge_lag | 0 |
| innodb_mirrored_log_groups
| innodb_open_files | 300 |
| innodb_rollback_on_timeout
| innodb_support_xa | ON |
| innodb_sync_spin_loops | 20 |
| innodb_table_locks | ON |
| innodb_thread_concurrency | 8 |
| innodb_thread_sleep_delay | 10000 |
| innodb_use_adaptive_hash_i
| insert_id | 0 |
| interactive_timeout | 28800 |
| join_buffer_size | 2097152 |
| keep_files_on_create | OFF |
| key_buffer_size | 8388608 |
| key_cache_age_threshold | 300 |
| key_cache_block_size | 1024 |
| key_cache_division_limit | 100 |
| language | /mysql051_root/sql/share/e
| large_files_support | ON |
| large_page_size | 0 |
| large_pages | OFF |
| last_insert_id | 0 |
| lc_time_names | en_US |
| license | GPL |
| local_infile | ON |
| log | OFF |
| log_bin | ON |
| log_bin_trust_function_cre
| log_bin_trust_routine_crea
| log_error | |
| log_output | FILE |
| log_queries_not_using_inde
| log_slave_updates | OFF |
| log_slow_queries | ON |
| log_warnings | 1 |
| long_query_time | 2.000000 |
| low_priority_updates | OFF |
| lower_case_file_system | ON |
| lower_case_table_names | 1 |
| max_allowed_packet | 2097152 |
| max_binlog_cache_size | 4294967295 |
| max_binlog_size | 1073741824 |
| max_connect_errors | 10 |
| max_connections | 100 |
| max_delayed_threads | 20 |
| max_error_count | 64 |
| max_heap_table_size | 4194304 |
| max_insert_delayed_threads
| max_join_size | 18446744073709551615 |
| max_length_for_sort_data | 1024 |
| max_prepared_stmt_count | 16382 |
| max_relay_log_size | 0 |
| max_seeks_for_key | 4294967295 |
| max_sort_length | 1024 |
| max_sp_recursion_depth | 0 |
| max_tmp_tables | 32 |
| max_user_connections | 0 |
| max_write_lock_count | 4294967295 |
| min_examined_row_limit | 0 |
| multi_range_count | 256 |
| myisam_data_pointer_size | 6 |
| myisam_max_sort_file_size | 10737418240 |
| myisam_recover_options | DEFAULT |
| myisam_repair_threads | 1 |
| myisam_sort_buffer_size | 33554432 |
| myisam_stats_method | nulls_unequal |
| myisam_use_mmap | OFF |
| net_buffer_length | 16384 |
| net_read_timeout | 30 |
| net_retry_count | 10 |
| net_write_timeout | 60 |
| new | OFF |
| old | OFF |
| old_alter_table | OFF |
| old_passwords | OFF |
| open_files_limit | 500 |
| optimizer_prune_level | 1 |
| optimizer_search_depth | 62 |
| pid_file | /mysql051_root/data/ccr.pi
| plugin_dir | /mysql051_root/vms/lib/ |
| port | 3306 |
| preload_buffer_size | 32768 |
| protocol_version | 10 |
| pseudo_thread_id | 0 |
| query_alloc_block_size | 8192 |
| query_cache_limit | 2097152 |
| query_cache_min_res_unit | 4096 |
| query_cache_size | 8388608 |
| query_cache_type | ON |
| query_cache_wlock_invalida
| query_prealloc_size | 8192 |
| rand_seed1 | |
| rand_seed2 | |
| range_alloc_block_size | 4096 |
| read_buffer_size | 2097152 |
| read_only | OFF |
| read_rnd_buffer_size | 4194304 |
| relay_log | |
| relay_log_index | |
| relay_log_info_file | relay-log.info |
| relay_log_purge | ON |
| relay_log_space_limit | 0 |
| rpl_recovery_rank | 0 |
| secure_auth | OFF |
| secure_file_priv | |
| server_id | 1 |
| skip_external_locking | ON |
| skip_networking | OFF |
| skip_show_database | OFF |
| slave_compressed_protocol | OFF |
| slave_load_tmpdir | /mysql051_root/mysql_serve
| slave_net_timeout | 3600 |
| slave_skip_errors | OFF |
| slave_transaction_retries | 10 |
| slow_launch_time | 2 |
| slow_query_log | ON |
| slow_query_log_file | /mysql051_root/data/ccr-sl
| sort_buffer_size | 8388608 |
| sql_auto_is_null | ON |
| sql_big_selects | ON |
| sql_big_tables | OFF |
| sql_buffer_result | OFF |
| sql_log_bin | ON |
| sql_log_off | OFF |
| sql_log_update | ON |
| sql_low_priority_updates | OFF |
| sql_max_join_size | 18446744073709551615 |
| sql_mode | REAL_AS_FLOAT,PIPES_AS_CON
| sql_notes | ON |
| sql_quote_show_create | ON |
| sql_safe_updates | OFF |
| sql_select_limit | 18446744073709551615 |
| sql_slave_skip_counter | |
| sql_warnings | OFF |
| ssl_ca | |
| ssl_capath | |
| ssl_cert | |
| ssl_cipher | |
| ssl_key | |
| storage_engine | InnoDB |
| sync_binlog | 1 |
| sync_frm | ON |
| system_time_zone | EST |
| table_definition_cache | 128 |
| table_lock_wait_timeout | 50 |
| table_open_cache | 128 |
| table_type | InnoDB |
| thread_cache_size | 8 |
| thread_handling | one-thread-per-connection |
| thread_stack | 196608 |
| time_format | %H:%i:%s |
| time_zone | SYSTEM |
| timed_mutexes | OFF |
| timestamp | 1257175799 |
| tmp_table_size | 4194304 |
| tmpdir | /mysql051_root/mysql_serve
| transaction_alloc_block_si
| transaction_prealloc_size | 4096 |
| tx_isolation | SERIALIZABLE |
| unique_checks | ON |
| updatable_views_with_limit
| version | 5.1.23-rc-log |
| version_comment | Source distribution |
| version_compile_machine | Alpha |
| version_compile_os | OpenVMS |
| wait_timeout | 28800 |
| warning_count | 0 |
+-------------------------
257 rows in set (7.29 sec)
I don't have an error log or kind of hostname.err file generated. Might be my openVMS distribution I don't know. But here are the log of the mysqld program. Please note that we cannot shutdown the MySQL correctly. Always have to kill the process. MysqlAdmin shutdown does not work and it's documented. The process says to log error to mysqld.err but that file is never generated. The log_error field in SHOW VARIABLES is also empty.
Here is the starting log :
CCR-DEVE$ type start_mysqld.log
$! SYLOGIN.COM désactivé par Serge Brisson le 2004-03-02.
$ Exit 1
$ exit
$ proc = f$environment("PROCEDURE")
$ if f$edit(f$getjpi("","userna
$ else
$ run /detach -
/input=mysql051_root:[vms.
/out=mysqld.log -
/err=mysqld.err -
/authorize -
/priority=4 -
/process_name=mysql051_ser
/priv=(nosame,netmbx,tmpmb
sys$system:loginout.exe
%RUN-S-PROC_ID, identification of created process is 000EC053
$ write sys$output "mysql daemon started..."
mysql daemon started...
$ endif
$ exit
MYSQL051_SRV job terminated at 2-NOV-2009 10:26:31.09
Here is the mysqld.log :
CCR-DEVE$ type mysqld.log;
$! SYLOGIN.COM désactivé par Serge Brisson le 2004-03-02.
$ Exit 1
$ exit
$ set process/parse=extend
$ mysqld :== $ mysql051_root:[vms.bin]mys
$ define sys$scratch mysql051_root:[mysql_serve
$ define /noLOG TMPDIR "/mysql051_root/mysql_serv
$ define /noLOG DECC$EFS_CASE_PRESERVE enable
$ define /noLOG DECC$EFS_CHARSET enable
$ define /noLOG DECC$READDIR_DROPDOTNOTYPE
$ define /noLOG DECC$FILENAME_UNIX_REPORT enable
$ define /noLOG DECC$FILE_SHARING enable
$ define /noLOG DECC$EFS_CASE_SPECIAL disable
$ define /noLOG DECC$FILENAME_UNIX_ONLY enable
$ define /noLOG DECC$ALLOW_REMOVE_OPEN_FIL
$ define /noLOG TCPIP$SELECT_ABORT_ON_SIGN
$ define /noLOG DECC$FD_LOCKING enable
$ define /noLOG DECC$POSIX_SEEK_STREAM_FIL
$ set rms/ext=20000
$ if f$trnlnm("LIBZ_SHR32") .eqs. "" then $ define LIBZ_SHR32 -
mysql051_root:[vms.lib]lib
$ if f$trnlnm("LIBZ_SHR64") .eqs. "" then $ define LIBZ_SHR64 -
mysql051_root:[vms.lib]lib
$!
$! All options except ansi defined using configuration file my.cnf
$!
$ mysqld --ansi
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
091102 10:26:40 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Last MySQL binlog file position 0 8437, file name ./mysql-bin.000008
091102 10:26:51 InnoDB: Started; log sequence number 0 26811876
091102 10:26:52 [Note] Recovering after a crash using mysql-bin
091102 10:26:52 [Note] Starting crash recovery...
091102 10:26:52 [Note] Crash recovery finished.
091102 10:27:03 [Note] Event Scheduler: Loaded 0 events
091102 10:27:03 [Note] /CCR$DRA0/SYS0/SYSCOMMON/M
Version: '5.1.23-rc-log' socket: '' port: 3306 Source distribution
091102 10:27:03 [Note] Event Scheduler: scheduler thread started with id 1
CCR-DEVE$
the mysqld.err is not generated because nothing is written to it.
You might try to stop it with stop/user
that would be a slightly better way to stop a process then just the default stop
(which ignores any usermode exit handlers).
It's about the difference between a kill -HUP and a kill -KILL (9) on unix.
Are there any other users within the mysql user table?
Or are those the only two.
How about the ownership of the files? (also within the mysql database storage)
I did some testing yesterday and I found something that works but I'm just not sure what it was.
I created my user using the mysql admin windows tool and made sure I refreshed the user list to see that it appears.
Directly in VMS I used flush privileges, checked the user table, etc. Then I shutdown the database right away and restarted it and now I'm keeping the user.
We have some problems with our MySQL release on OpenVMS that sometimes freeze because it's full of temporary tables / connection that hangs. After that, there is some sort of recovery that we see in the mysqld.log and maybe that's why it did not keep the newly created user.
Business Accounts
Answer for Membership
by: quicksilver17Posted on 2009-10-28 at 15:46:56ID: 25689080
have you FLUSH PRIVILEGES; ?