Posted by lumintu in Tetang Server.
Tags: mysql
Awalnya gini aku menagalmi problem dengan mysqlku , aku menggunakan
server linux slackware 12
kemudian aku membuat web server denagn xampp fo linux tapi utuk mysql databasenya aku instal sendiri
bukan bawaannya xampp.
pada awalnya jalan seperti biasa tapi karena keseringan listrik mati na gak tahu kenapa tiba2 webserverku gak jalan
dan yang gak jalan cuma myqsl servernya....aduh gimana nich...?
pertama aku jalankan ini #/etc/rc.d/rc.local
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
070105 20:23:40 mysqld ended
hasilnya kayak gitu...terus bingungkan?
nah trus setelah aku browsing2 nah akhirnya daept juga nih
hanya dengan comamand
# sh -x bin/mysqld_safe --user=root
selesai dech urusannya....aku berhasil mysqlnya jalan lagi..
hore..hore...aku berhasil...alhamdulilah ya allah...kau telah
memberikan petujunkunmu..
thax ya Allah..
ni hasil brwosingnya..
When i try to run mysqld_safe cmd, it fails saying :
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
070105 20:23:40 mysqld ended
Also mysqld.pid does not exist at the given path!
Any Idea what to do??? mysql_install_db is running fine as well.
Contents of mysqld.log are :
070105 20:23:40 mysqld started
InnoDB: Error: auto-extending data file ./ibdata1 is of a different size
InnoDB: 0 pages (rounded down to MB) than specified in the .cnf file:
InnoDB: initial 640 pages, max 0 (relevant if non-zero) pages!
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
070105 20:23:40 [ERROR] Can't init databases
070105 20:23:40 [ERROR] Aborting
070105 20:23:40 [Note] /usr/libexec/mysqld: Shutdown complete
070105 20:23:40 mysqld ended
When i tried to see the shell script running, i get the following msg:
sh -x bin/mysqld_safe --user=root
+ KILL_MYSQLD=1
+ trap '' 1 2 3 15
+ umask 007
+ defaults=
+ case "$1" in
++ pwd
+ MY_PWD=/usr
+ test -d /usr/data/mysql -a -f ./share/mysql/english/errmsg.sys -a -x
./bin/mysqld
+ test -f ./var/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a -x
./libexec/mysqld
+ MY_BASEDIR_VERSION=/usr
+ DATADIR=/var/lib/mysql
+ ledir=/usr/libexec
+ user=mysql
+ niceness=0
+ test -x /usr/libexec/mysqld-max
+ MYSQLD=mysqld
+ pid_file=
+ err_log=
+ test -x ./bin/my_print_defaults
+ print_defaults=./bin/my_print_defaults
+ args=
+ SET_USER=2
++ ./bin/my_print_defaults --loose-verbose mysqld server
+ parse_arguments --datadir=/var/lib/mysql
--socket=/var/lib/mysql/mysql.sock --old_passwords=1
+ pick_args=
+ test --datadir=/var/lib/mysql = PICK-ARGS-FROM-ARGV
+ for arg in '"$@"'
+ case "$arg" in
++ echo --datadir=/var/lib/mysql
++ sed -e 's;--datadir=;;'
+ DATADIR=/var/lib/mysql
+ for arg in '"$@"'
+ case "$arg" in
++ echo --socket=/var/lib/mysql/mysql.sock
++ sed -e 's;--socket=;;'
+ mysql_unix_port=/var/lib/mysql/mysql.sock
+ for arg in '"$@"'
+ case "$arg" in
+ test -n ''
+ test 2 -eq 2
+ SET_USER=0
++ ./bin/my_print_defaults --loose-verbose mysqld_safe safe_mysqld
+ parse_arguments --err-log=/var/log/mysqld.log
--pid-file=/var/run/mysqld/mysqld.pid
+ pick_args=
+ test --err-log=/var/log/mysqld.log = PICK-ARGS-FROM-ARGV
+ for arg in '"$@"'
+ case "$arg" in
++ echo --err-log=/var/log/mysqld.log
++ sed -e 's;--err-log=;;'
+ err_log=/var/log/mysqld.log
+ for arg in '"$@"'
+ case "$arg" in
++ echo --pid-file=/var/run/mysqld/mysqld.pid
++ sed -e 's;--pid-file=;;'
+ pid_file=/var/run/mysqld/mysqld.pid
+ parse_arguments PICK-ARGS-FROM-ARGV --user=root
+ pick_args=
+ test PICK-ARGS-FROM-ARGV = PICK-ARGS-FROM-ARGV
+ pick_args=1
+ shift
+ for arg in '"$@"'
+ case "$arg" in
++ echo --user=root
++ sed -e 's;--[^=]*=;;'
+ user=root
+ SET_USER=1
+ safe_mysql_unix_port=/var/lib/mysql/mysql.sock
+ test '!' -x /usr/libexec/mysqld
+ test -z /var/run/mysqld/mysqld.pid
+ case "$pid_file" in
+ test -z /var/log/mysqld.log
+ test -n /var/lib/mysql/mysql.sock
+ args='--socket=/var/lib/mysql/mysql.sock '
+ test -n ''
+ test 0 -eq 0
+ NOHUP_NICENESS=nohup
+ nohup nice
++ nice
+ normal_niceness=0
++ nohup nice
+ nohup_niceness=0
+ numeric_nice_values=1
+ for val in '$normal_niceness' '$nohup_niceness'
+ case "$val" in
+ for val in '$normal_niceness' '$nohup_niceness'
+ case "$val" in
+ test 1 -eq 1
+ nice_value_diff=0
+ test 1 -eq 0
+ USER_OPTION=
+ test -w / -o root = root
+ test root '!=' root -o 1 = 1
+ USER_OPTION=--user=root
+ touch /var/log/mysqld.log
+ chown root /var/log/mysqld.log
+ test -n ''
+ test -n ''
+ test -f /var/run/mysqld/mysqld.pid
+ echo 'Starting mysqld daemon with databases from /var/lib/mysql'
Starting mysqld daemon with databases from /var/lib/mysql
++ date '+%y%m%d %H:%M:%S mysqld started'
+ echo '070105 20:22:45 mysqld started'
+ true
+ rm -f /var/lib/mysql/mysql.sock /var/run/mysqld/mysqld.pid
+ test -z '--socket=/var/lib/mysql/mysql.sock '
+ eval 'nohup /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql
--user=root --pid-file=/var/run/mysqld/mysqld.pid --skip-locking
--socket=/var/lib/mysql/mysql.sock >> /var/log/mysqld.log 2>&1'
++ nohup /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql
--user=root --pid-file=/var/run/mysqld/mysqld.pid --skip-locking
--socket=/var/lib/mysql/mysql.sock
+ test '!' -f /var/run/mysqld/mysqld.pid
+ echo 'STOPPING server from pid file /var/run/mysqld/mysqld.pid'
STOPPING server from pid file /var/run/mysqld/mysqld.pid
+ break
++ date '+%y%m%d %H:%M:%S'
+ echo '070105 20:22:45 mysqld ended'
+ tee -a /var/log/mysqld.log
070105 20:22:45 mysqld ended
+ echo ''
+ tee -a /var/log/mysqld.log
Posted by lumintu in install Ftp server.
Installasi FTP server dengan ProFTPd
Asumsi-asumsi:
==============
- Artikel ini hanyalah membahas basic configuration dari ftp server, untuk pengembangan lebih lanjut silahkan baca-baca di www.proftpd.org.
- Paket proftpd yg digunakan adalah proftpd-1.2.4.tar.gz Langkah-langkah instalasi:
==========================
- Download paket proftpd-1.2.4.tar.gz dari situs www.proftpd.org
- Ekstrak ke direktori yg anda suka:
[root@taubat hari]# tar zxvf proftpd-1.2.4.tar.gz -C /usr/local/src
- Pergi ke direktori baru hasil ekstrak:
[root@taubat src]# cd proftpd-1.2.4
- Compile dan install:
[root@taubat proftpd-1.2.4]# ./configure; make; make install
- Buat user yang akan menjalankan proftpd:
[root@taubat proftpd-1.2.4]# useradd proftpd -s /dev/null
- Buat home directory untuk anonymous:
[root@taubat proftpd-1.2.4]# mkdir /home/ftp
- Edit file konfigurasi proftpd dengan text editor yg anda suka:
[root@taubat proftpd-1.2.4]# vi /usr/local/etc/proftpd.conf
- Contoh file konfigurasi proftpd.conf untuk basic ftp server:
# This is a basic ProFTPD configuration file (rename it to
# ‘proftpd.conf’ for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# “nobody” and “ftp” for normal operation and anon.
ServerName “Hari-huhui”
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User proftpd
Group proftpd
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>
# A basic anonymous configuration, no upload directories.
<Anonymous /home/ftp>
RequireValidShell off
User ftp
Group ftp
# We want clients to be able to login with “anonymous” as well as “ftp”
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10
# We want ‘welcome.msg’ displayed at login, and ‘.message’ displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
- Jalankan proftpd:
[root@taubat proftpd-1.2.4]# /usr/local/sbin/proftpd
- Jika ada error, selalu lakukan cek di /var/log/messages, anda akan menemukan informasi yg sangat berharga di situ 
[root@taubat proftpd-1.2.4]# tail /var/log/messages
- Jika tidak ada error, lakukan test dengan mencoba ftp server baru anda
[root@taubat proftpd-1.2.4]# ftp localhost
Connected to localhost (127.0.0.1).
220 ProFTPD 1.2.4 Server (Hari-huhui) [taubat.nasuha.org]
Name (localhost:root): hari
331 Password required for hari.
Password:
230 User hari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
- Lakukan test juga terhadap konfigurasi anonymous ftp server anda
[root@taubat proftpd-1.2.4]# ftp localhost
Connected to localhost (127.0.0.1).
220 ProFTPD 1.2.4 Server (Hari-huhui) [taubat.nasuha.org]
Name (localhost:root): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Jika output yang keluar adalah seperti di atas, maka selamat, ftp server anda telah berjalan dengan baik
Alhamdulillaahirabbil’aalamiin
Posted by lumintu in Kumpulan Artikel.
1. Nomor darurat
Nomor darurat untuk telepon genggam adalah 112.
Jika Anda sedang di daerah yang sulit menerima sinyal HP dan perlu memanggil pertolongan, silahkan tekan 112, maka HP akan mencari network yang ada untuk
menyambungkan nomor darurat bagi Anda. Yang menarik, nomor 112
dapat ditekan biarpun keypad di-lock. Cobalah.
2. Baterai cadangan tersembunyi
Kalau baterai HP Nokia Anda hampir habis, padahal Anda sedang menunggu telpon penting, silahkan tekan *3370#, maka telpon Anda otomatis restart dan baterai akan bertambah 50%. Baterai cadangan ini akan terisi waktu Anda mencharge HP Anda.
3. Kunci remote mobil Anda ketinggalan di dalam mobil?
Kalau kunci Anda ketinggalan di dalam mobil dan remote cadangannya di rumah, maka telponlah orang rumah dengan HP, lalu dekatkan HP Anda ke mobil kurang lebih 30cm, dan minta orang rumah untuk mendekatkan remotenya ke telepon yang dipakainya lalu menekan tombol pembuka pada remote cadangan tersebut. Voila… mobil Anda pun akan terbuka!
4. Cek keabsahan mobil/motor (Jakarta area only)
Contoh: Ketik metro b86301o (nomer polisi kendaraan), kirim ke 1717, nanti akan ada balasan dari kepolisian mengenai data” kendaraan tersebut. Tips ini juga berguna untuk mengetahui data” mobil bekas yang hendak Anda beli/incar.
5. Dirampok di ATM
Jika jiwa Anda terancam karena sedang ditodong penjahat dan Anda diminta untuk mengeluarkan uang dari ATM, maka Anda bisa minta pertolongan diam” dengan memberikan nomor pin secara terbalik. Misal nomer asli pin Anda 1234, bila diinput 4321 di
ATM maka mesin tetap akan mengeluarkan uang tapi juga tanda bahaya ke kantor polisi tanpa diketahui penjahat tsb.
Fasilitas ini tersedia di seluruh ATM tapi hanya sedikit orang yang tahu. Tolong sebarkan info ini kepada yang lain.
Posted by lumintu in Kumpulan Artikel.
Tags: program windows
Aplikasi rahasia yang disembunyikan dalam Windows XP
Untuk menjalankan Aplikasi-aplikasi di bawah ini :
Buka command prompt dan Ketikkan nama programnya (contoh :cleanmgr.exe) atau klik Start -> Run dan Ketikkan nama programnya (contoh :cleanmgr.exe).
1. Disk Cleanup = cleanmgr.exe
Digunakan untuk cleanup disk
2. Character Map = charmap.exe
Digunakan untuk mencari karakter yang tidak umum
3. Dr Watson = drwtsn32.exe
Digunakan untuk troubleshooting di PC.
4. DirectX diagnosis = dxdiag.exe
Digunakan untuk diagnosis audio video card anda
5. Private character editor = eudcedit.exe
Digunakan untuk membuat karakter baru di windows anda
6. IExpress Wizard = iexpress.exe
Digunakan untuk membuat self-extracting / self-installing package. seperti file Zip
7. Microsoft Synchronization Manager = mobsync.exe
Digunakan untuk membuat sincronisasi.
8. Clipboard Viewer = clipbrd.exe
Digunakan untuk melihat konten dari Windows clipboard
9. Windows Media Player 5.1 = mplay32.exe
Digunakan untuk membuka Windows Media Player versi 5.1
10. ODBC Data Source Administrator = odbcad32.exe
Digunakan untuk keperluan database
11. Object Packager = packager.exe
Digunakan untuk memasukkan objek kedalam file.
12. System Configuration Editor = sysedit.exe
Digunakan untuk mengubah system.ini dan win.ini
13. Syskey = syskey.exe
Digunakan untuk konfigurasi account di windows.
14. Microsoft Telnet Client = telnet.exe
Digunakan untuk melakukan koneksi internet sebelum ada browser.
15. Driver Verifier Manager = verifier.exe
Digunakan untuk monitoring driver di windows anda
16. Windows for Workgroups Chat = winchat.exe
Digunakan untuk chat sec
17. System configuration = msconfig.exe
Digunakan untuk mengontrol program startup
18. System Monitor = perfmon.exe
Digunakan untuk memonitor PC anda.
19. Program Manager = progman.exe
Merupakan warisan dari Windows 3.x desktop shell
20. gpedit.msc
Digunakan untuk mengatur group policy dan otorisasi, apabila Anda menggunakan Active Directory.
21. Remote Access phone book = rasphone.exe
Merupakan aplikasi seperti buku telepon
22. Registry Editor = regedt32.exe [juga regedit.exe]
Digunakan untuk tweaking dan editing registry windows
23. Network shared folder wizard = shrpubw.exe
Digunakan untuk membuat shared folder dalam jaringan
24. File siganture verification tool = sigverif.exe
Digunakan untuk verifikasi signature
25. Volume Control = sndvol32.exe
Digunakan untuk menampilkan sound control di System Tray
sumber :http://finderonly.com