Pipes in Windows NT
Would anyone be able to tell me whether it's possible to create a named pipe from Java program under Windows NT? Or read from a named pipe created by a VisualBasic or C++ program in WinNT?
I've been using named pipes from Java under W2K. I suppose there should work on NT.
I open the pipe as any other file, this time called \pipe\yourname. You can prefix it with a server name. The Windows file system takes care of the rest.
Similar Messages
-
Backslash / pipe bootcamp with Windows 7 (french keyb. - clavier français)
Hello,
I bring you the result of search on various forums in the hope of using the backslash and pipe characters of my Macbook Pro 13" french keyboard in Windows 7 with bootcamp 3.2
Here we go :
- Backslash: Right ALT + 8 /!
- Pipe: Right ALT + 6 §
Salut,
Je vous apporte le fruit d'un butinage sur plusieurs forums à la recherche d'une réponse afin d'utiliser les caractères backslash et pipe sous Windows 7 avec bootcamp 3.2 avec, pour ma part, un Macbook Pro 13" avec clavier français.
Les combinaisaons de touche sont les suivantes :
- backslash : ALT droit + 8/!
- pipe : ALT droit + 6§
Très bonne utilisation !Hello,
I bring you the result of search on various forums in the hope of using the backslash and pipe characters of my Macbook Pro 13" french keyboard in Windows 7 with bootcamp 3.2
Here we go :
- Backslash: Right ALT + 8 /!
- Pipe: Right ALT + 6 §
Salut,
Je vous apporte le fruit d'un butinage sur plusieurs forums à la recherche d'une réponse afin d'utiliser les caractères backslash et pipe sous Windows 7 avec bootcamp 3.2 avec, pour ma part, un Macbook Pro 13" avec clavier français.
Les combinaisaons de touche sont les suivantes :
- backslash : ALT droit + 8/!
- pipe : ALT droit + 6§
Très bonne utilisation ! -
Any way to disable the video preview/PIP window?
I would like to be able to disable the PIP/preview window during a chat...don't see any obvious way to do this...
can I?
Thanks
MikeConsequently if you have a MAc account on two
computers and use the same full name in the Address
Book you will have problems.
There is also a secondary issue if the comptuers have
the same name.
hey Ralph-
yeah, I could understand that, but the 2 machines do NOT have the same name, and I've set up different address book entries...one doesn't have ANY accounts active...raw machine that I just want to get the Bonjour chatting to work...
interestingly, it works MUCH better on a computer to computer network than it does with the 2 machines just accessing a Airport express that is NOT connected to the internet.
Mike -
Getting FMS to broadcast a media file being read via a named pipe.
I know you can broadcast partial AVI videos due to it's format. What I want to do, is feed an avi file to fms which is being generated by software on the local machine. If I create a named-pipe(on windows), will I be able to feed an avi file to fms while it's being read?
Thanks Balusc!!
I have made use of your code to display PDF files in an IFRAME tag too!!! I just dint believe that this would be possible. Please just take a look at my JSP page.
<h:form id="CaseLookUp">
<%
String path = request.getContextPath()+"";
out.print(path);
%>
<iframe scrolling="auto" src="<%=path%>/imageServlet?file=D:\70-229 V5.pdf" width="80%" height="600" ></iframe>
</h:form> -
Hi everyone,
Anyone knows how to implement a full named pipe using java?
i am wondering if it is possible to implement a named pipe in windows xp using .net which could "communicate" with a java app.
Many thanks,Hi everyone,
here is where i am stuck in:
after reading the article i have a couple of questions:
how can the command mkfifo in java be implemented?
Besides, what i have done is as follows:
i have an app which is using the runtime to create another process in order to receive all the messages from some libraries. For the moment it is receiving all the messages and copying them into a file (this part works perfectly)
<Master Code>
FileOutputStream fos = new FileOutputStream("text.txt");//args[0]);
Runtime rt = Runtime.getRuntime();
//Process pipe = rt.exec("mkfifo pipe");
Process proc = rt.exec("java MainInterface");
StreamGobbler outputGobbler = new
StreamGobbler(proc.getInputStream(), "OUTPUT", fos);
// kick them off
outputGobbler.start();
<end Master Code>
<Thread which copyes into a file>
class StreamGobbler extends Thread
InputStream is;
String type;
OutputStream os;
StreamGobbler(InputStream is, String type, OutputStream redirect)
this.is = is;
this.type = type;
this.os = redirect;
public void run()
try
PrintWriter pw = null;
if (os != null)
pw = new PrintWriter(os);
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line=null;
while ( (line = br.readLine()) != null)
if (pw != null)
pw.println(line);
System.out.println(type + ">" + line);
pw.flush();
if (pw != null)
pw.flush();
} catch (IOException ioe)
ioe.printStackTrace();
<End Thread which copyes into a file>
And the app called by this master program, which should show the messages incoming in the pip in a text area:
<mainInterface>
public static void main(String[] args) throws IOException{
javax.swing.SwingUtilities.invokeLater(new Runnable() {
//Here should be the pipe called
public void run() {
createAndShowGUI();
<End mainInterface>
Now the point is how can be done to write instead in a file, into a pipe which the mainInterface could access
Many thanks -
Reading / writing to named pipes in java created by C under WinNT
Hi,
i just wanted to know if im somehow able to read/write to a named pipe under WinNT. I've created a named pipe, but i cant seem to access it under java.
i tryed
File pipe = new File("\\\\.\\pipe\\myPipe");
but when i do pipe.exists() it returns false..
When i try to access this very same pipe from C it works like charm, but not from java.. Im 100% sure that the pipe exists, i have a tool that lists me all open pipes under windows and my pipe is listed there too.
I even tryed to use RandomAccessFile, but it just throws a FileNotFoundException..
Anyone was ever able to sucessfully read/write from named pipes in java under WinNT (any windoze ?)
ThanksThanks, but i always get a Pipe not found error (FileNotFoundException), im 100% sure the pipe exists, my .dll can write to it and read from it, im using the pipelist tool from http://www.sysinternals.com/ntw2k/info/tips.shtml#NamedPipes to list me all the pipes current open under WinNT - and my pipe is there...
My dll creates the pipe, here is the code :
g_hPipe = CreateNamedPipe(
lptstrPipeName , // name of pipe
//FILE_FLAG_OVERLAPPED |
PIPE_ACCESS_INBOUND, // pipe open mode
PIPE_TYPE_BYTE|
PIPE_READMODE_BYTE |
PIPE_WAIT, // pipe IO type
1,// number of instances
0, // size of outbuf (0 == allocate as necessary)
0, // size of inbuf
1000, // default time-out value
&sa); // security attributes WARNING: passing null
// all clients have the same security rights as the server
Is your CreateNamedPipe any different ? Or does it maybe only work under Win2k ? AFAIK named pipes under windows are not accessable through the file system.
Thanks again for your reply -
when I type "rc.d start mysqld" it displays busy for a while, then fails. At this point it does not generate an error message. I have changed the permissions of /var/lib/mysql recursively to 777. I have also created the mysqld directory in /var/run and given it 777 permissions. I hope I have included all the relevant files.
I have read every suggestion on the internet and gotten nowhere. Please help a noobus out. Thanks in advance.
/var/lib/mysql/localhost.err
120115 01:11:48 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
120115 1:11:48 [Warning] One can only use the --user switch if running as root
120115 1:11:48 InnoDB: The InnoDB memory heap is disabled
120115 1:11:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120115 1:11:48 InnoDB: Compressed tables use zlib 1.2.5
120115 1:11:48 InnoDB: Initializing buffer pool, size = 128.0M
120115 1:11:48 InnoDB: Completed initialization of buffer pool
120115 1:11:48 InnoDB: highest supported file format is Barracuda.
120115 1:11:50 InnoDB: Waiting for the background threads to start
120115 1:11:51 InnoDB: 1.1.8 started; log sequence number 1595675
120115 1:11:51 [ERROR] Can't start server : Bind on unix socket: Permission denied
120115 1:11:51 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?
120115 1:11:51 [ERROR] Aborting
120115 1:11:51 InnoDB: Starting shutdown...
120115 1:11:51 InnoDB: Shutdown completed; log sequence number 1595675
120115 1:11:51 [Note] /usr/bin/mysqld: Shutdown complete
120115 01:11:51 mysqld_safe mysqld from pid file /var/lib/mysql/localhost.pid ended
/etc/rc.conf
# /etc/rc.conf - Main Configuration for Arch Linux
# LOCALIZATION
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
# in the hardware clock being left untouched (useful for virtualization)
# Note: Using "localtime" is discouraged, using "" makes hwclock fall back
# to the value in /var/lib/hwclock/adjfile
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# Note: if unset, the value in /etc/localtime is used unchanged
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="UTC"
TIMEZONE="America/New_York"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
# HARDWARE
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
# Replace every !module by an entry as on the following line in a file in
# /etc/modprobe.d:
# blacklist module
# See "man modprobe.conf" for details.
MODULES=()
# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30
# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"
# Scan for BTRFS volumes at startup
USEBTRFS="no"
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# NETWORKING
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
HOSTNAME="localhost"
# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
# Wired network setup
# - interface: name of device (required)
# - address: IP address (leave blank for DHCP)
# - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
# - broadcast: broadcast address (ignored for DHCP) (optional)
# - gateway: default route (ignored for DHCP)
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# broadcast=192.168.0.255
# gateway=192.168.0.1
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=
interface=eth0
address=
netmask=
broadcast=
gateway=
# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"
# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
# Network profiles are found in /etc/network.d
# This requires the netcfg package
NETWORKS=(menu)
WIRELESS_INTERFACE="wlan0"
WIRED_INTERFACE="ethO"
# DAEMONS
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
DAEMONS=(hwclock syslog-ng @network crond net-auto-wired dbus acpid)
/etc/hosts
# /etc/hosts: static lookup table for host names
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
#::1 localhost.localdomain localhost
# End of file
/etc/mysql/my.cnf
# MySQL config file for medium systems.
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
skip-networking
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
# To configure this host as a replication slave, you can choose between
# two methods :
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
# the syntax is:
# CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
# MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
# where you replace <host>, <user>, <password> by quoted strings and
# <port> by the master's port number (3306 by default).
# Example:
# CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
# MASTER_USER='joe', MASTER_PASSWORD='secret';
# OR
# 2) Set the variables below. However, in case you choose this method, then
# start replication for the first time (even unsuccessfully, for example
# if you mistyped the password in master-password and the slave fails to
# connect), the slave will create a master.info file, and any later
# change in this file to the variables' values below will be ignored and
# overridden by the content of the master.info file, unless you shutdown
# the slave server, delete master.info and restart the slaver server.
# For that reason, you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id = 2
# The replication master for this slave - required
#master-host = <hostname>
# The username the slave will use for authentication when connecting
# to the master - required
#master-user = <username>
# The password the slave will authenticate with when connecting to
# the master - required
#master-password = <password>
# The port the master is listening on.
# optional - defaults to 3306
#master-port = <port>
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/lib/mysql
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeoutHi,
I seem to have had an issue with mysql as well and it appears to be that I don't have a sock file as I have checked /var/run/mysqld for mysqld.sock and it does not exist so would that be what is stopping mysql server from starting and if so how do I create the sock file ??
Cheers
Quazza
Update - Actually I solved my problem to, it was to do with my log files filling up but that also led to the bigger problem of a failing HD oh what fun anyway got there before any major data loss.
Last edited by quazza (2012-01-20 08:09:26) -
[resolved] Can not install mysql
Oooops, I fixed it. Somehow /tmp had wrong permissions..
Hello,
after an upgrade my mysql dameon did not work anymore so I did what https://bbs.archlinux.org/viewtopic.php?pid=889846 says and removed all configs and removed it.
Now pacman -S mysql gives my this
# pacman -S mysql
resolving dependencies...
looking for inter-conflicts...
Targets (1): mysql-5.5.11-1
Total Download Size: 0.00 MB
Total Installed Size: 62.59 MB
Proceed with installation? [Y/n] y
(1/1) checking package integrity [################################################] 100%
(1/1) checking for file conflicts [################################################] 100%
(1/1) installing mysql [################################################] 100%
Installing MySQL system tables...
ERROR: 1 Can't create/write to file '/tmp/#sql_1d4d_0.MYI' (Errcode: 13)
110503 9:20:58 [ERROR] Aborting
110503 9:20:58 [Note] /usr/bin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/bin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/scripts/mysqlbug script!
Optional dependencies for mysql
perl-dbi
perl-dbd-mysql
The hostname.err contains
110503 09:29:53 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110503 9:29:53 InnoDB: The InnoDB memory heap is disabled
110503 9:29:53 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110503 9:29:53 InnoDB: Compressed tables use zlib 1.2.5
/usr/bin/mysqld: Can't create/write to file '/tmp/ibwoHE0m' (Errcode: 13)
110503 9:29:54 InnoDB: Error: unable to create temporary file; errno: 13
110503 9:29:54 [ERROR] Plugin 'InnoDB' init function returned error.
110503 9:29:54 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
110503 9:29:54 [ERROR] Unknown/unsupported storage engine: InnoDB
110503 9:29:54 [ERROR] Aborting
110503 9:29:54 [Note] /usr/bin/mysqld: Shutdown complete
110503 09:29:54 mysqld_safe mysqld from pid file /var/lib/mysql/icarus.pid ended
And my my.cnl (I didnt touch it)
1 # MySQL config file for medium systems.
2 #
3 # This is for a system with little memory (32M - 64M) where MySQL plays
4 # an important part, or systems up to 128M where MySQL is used together with
5 # other programs (such as a web server)
6 #
7 # MySQL programs look for option files in a set of
8 # locations which depend on the deployment platform.
9 # You can copy this option file to one of those
10 # locations. For information about these locations, see:
11 # http://dev.mysql.com/doc/mysql/en/option-files.html
12 #
13 # In this file, you can use all long options that a program supports.
14 # If you want to know which options a program supports, run the program
15 # with the "--help" option.
16
17 # The following options will be passed to all MySQL clients
18 [client]
19 #password = your_password
20 port = 3306
21 socket = /var/run/mysqld/mysqld.sock
22
23 # Here follows entries for some specific programs
24
25 # The MySQL server
26 [mysqld]
27 port = 3306
28 socket = /var/run/mysqld/mysqld.sock
29 datadir = /var/lib/mysql
30 skip-external-locking
31 key_buffer_size = 16M
32 max_allowed_packet = 1M
33 table_open_cache = 64
34 sort_buffer_size = 512K
35 net_buffer_length = 8K
36 read_buffer_size = 256K
37 read_rnd_buffer_size = 512K
38 myisam_sort_buffer_size = 8M
39
40 # Don't listen on a TCP/IP port at all. This can be a security enhancement,
41 # if all processes that need to connect to mysqld run on the same host.
42 # All interaction with mysqld must be made via Unix sockets or named pipes.
43 # Note that using this option without enabling named pipes on Windows
44 # (via the "enable-named-pipe" option) will render mysqld useless!
45 #
46 skip-networking
47
48 # Replication Master Server (default)
49 # binary logging is required for replication
50 log-bin=mysql-bin
51
52 # binary logging format - mixed recommended
53 binlog_format=mixed
54
55 # required unique id between 1 and 2^32 - 1
56 # defaults to 1 if master-host is not set
57 # but will not function as a master if omitted
58 server-id = 1
59
60 # Replication Slave (comment out master section to use this)
61 #
62 # To configure this host as a replication slave, you can choose between
63 # two methods :
64 #
65 # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
66 # the syntax is:
67 #
68 # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
69 # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
70 #
71 # where you replace <host>, <user>, <password> by quoted strings and
72 # <port> by the master's port number (3306 by default).
73 #
74 # Example:
75 #
76 # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
77 # MASTER_USER='joe', MASTER_PASSWORD='secret';
78 #
79 # OR
80 #
81 # 2) Set the variables below. However, in case you choose this method, then
82 # start replication for the first time (even unsuccessfully, for example
83 # if you mistyped the password in master-password and the slave fails to
84 # connect), the slave will create a master.info file, and any later
85 # change in this file to the variables' values below will be ignored and
86 # overridden by the content of the master.info file, unless you shutdown
87 # the slave server, delete master.info and restart the slaver server.
88 # For that reason, you may want to leave the lines below untouched
89 # (commented) and instead use CHANGE MASTER TO (see above)
90 #
91 # required unique id between 2 and 2^32 - 1
92 # (and different from the master)
93 # defaults to 2 if master-host is set
94 # but will not function as a slave if omitted
95 #server-id = 2
96 #
97 # The replication master for this slave - required
98 #master-host = <hostname>
99 #
100 # The username the slave will use for authentication when connecting
101 # to the master - required
102 #master-user = <username>
103 #
104 # The password the slave will authenticate with when connecting to
105 # the master - required
106 #master-password = <password>
107 #
108 # The port the master is listening on.
109 # optional - defaults to 3306
110 #master-port = <port>
111 #
112 # binary logging - not required for slaves, but recommended
113 #log-bin=mysql-bin
114
115 # Uncomment the following if you are using InnoDB tables
116 #innodb_data_home_dir = /var/lib/mysql
117 #innodb_data_file_path = ibdata1:10M:autoextend
118 #innodb_log_group_home_dir = /var/lib/mysql
119 # You can set .._buffer_pool_size up to 50 - 80 %
120 # of RAM but beware of setting memory usage too high
121 #innodb_buffer_pool_size = 16M
122 #innodb_additional_mem_pool_size = 2M
123 # Set .._log_file_size to 25 % of buffer pool size
124 #innodb_log_file_size = 5M
125 #innodb_log_buffer_size = 8M
126 #innodb_flush_log_at_trx_commit = 1
127 #innodb_lock_wait_timeout = 50
128
129 [mysqldump]
130 quick
131 max_allowed_packet = 16M
132
133 [mysql]
134 no-auto-rehash
135 # Remove the next comment character if you are not familiar with SQL
136 #safe-updates
137
138 [myisamchk]
139 key_buffer_size = 20M
140 sort_buffer_size = 20M
141 read_buffer = 2M
142 write_buffer = 2M
143
144 [mysqlhotcopy]
145 interactive-timeout
I can't start mysql daemon, it says "FAIL"
Last edited by cyberius (2011-05-03 08:35:56)hi DILIPDKJ,
Just to verify, is this the PowerDVD software that you're trying to install?
PowerDVD 10 BD
v10.0.3029.52
IN12STW153WW5.exe
114 MB
Regards
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
Follow @LenovoForums on Twitter! -
Thread to read from external program
Hello Fellows,
Here it is, I'm trying to interact with other programs using Labview 8.0.
I have read lots of messages on Active X and threads to understand a bit on that functionnalities and can't figure out if I could or not do my program.
So image explains better than words, please look at the attached file to see my issue.
Other question is about the the Open System Command Pipe.vi, read From Pipe.vi, Close Pipe.vi etc. Are these vi's able to create a vrtual COM port as a pipe ?
And is this Vis available in LabVIEW 8.0 Full Dev ?
Thanks for your reply....see you
Attachments:
ExplainPipe.jpg 41 KBHi
The Open System Command Pipe.vi, read From Pipe.vi, Close Pipe.vi etc are in Labview full but only linux and MAC OS version. You can not use pipe with Windows.
Regards
VéroniqueD
NI France -
Connecting to mysql database using DBLOGIN
I am trying to connect to a mysql database through GG command interface and am unable to get the DBLOGIN to work correctly. Here is what I am getting:-
mysql world -u root -p<password> (as user OS user mysql- works!)
GGSCI (rac1) 5> DBLOGIN SOURCEDB world, USERID root, PASSWORD <password>
2010-11-08 16:29:17 WARNING OGG-00769 MySQL Login failed: . SQL error (2002). Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
ERROR: Failed to connect to MySQL database engine for HOST localhost, DATABASE world, USER root, PORT 0.
I am not too familiar with mysql and will appreciate help and also pointer to documents that walk through setting up and testing Golden Gate with mysql.
Thanks,
Satishhi.
i have same problem can't connect to mysql using dblogin on ggsci, please helpme
this my.cnf configuration
# Example MySQL config file for small systems.
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/lib/mysql) or
# ~/.my.cnf to set user-specific options.
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
#socket = /var/run/mysqld/mysqld.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /tmp/mysql.sock
#socket = /var/run/mysqld/mysqld.sock
skip-locking
key_buffer_size = 16K
max_allowed_packet = 1M
table_open_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 128K
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (using the "enable-named-pipe" option) will render mysqld useless!
#skip-networking
server-id = 1
# Uncomment the following if you want to log updates
#log-bin=mysql-bin
# binary logging format - mixed recommended
#binlog_format=mixed
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/lib/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 8M
sort_buffer_size = 8M
[mysqlhotcopy]
interactive-timeout -
Shell cmd to take selected text as stdin
I'm trying to find a utility that I can use on a shell command line to
take selected text in any CDE/Solaris as stdin and just copy to stdout. What API can I use if I write this in java?
Any easier way to pipe selected window text into a program (e.g. lp)?
There used to be a get_selection command in Sun4, but it doesn't work in Sun5.
-willy
get_selection | lpOk, let me try this again.
I have a CDE windowing system running. On one of the windows, I simply select
text. It could be a shell window, a textedit window or whatever.
The old sun4 get_selection solution did not require pasting into the clipboard.
If I use cat in the way the responder suggests, then I need to copy and paste into the shell window as input to cat filling up the shell window unnecessarily. The window buffer may be limited which could cause overflow of desired lines.
Simply by selecting the text (which is now highlighted), get_selection would use that text as it's stdin so I can pipe it to any other program such as lp or save it in a file, e.g. get_selection > file.txt or get_selection | lp.
Having to juggle a temporary file is extra steps.
This is so basic, I am surprised it is missing from the current Sun offerings.
Also I tried to find the best Forum for user interface questions and to my surprise, there were none I could find. This forum was my best guess. Any other forum suggestions for this kind of question.
I didn't have the source for get_selection and it doesn't work in solaris 7.
I also searched for the API to access the selected text (the same text that 'copy' operates on), but couldn't locate it for use in my own program.
thanks for the responses so far. -
after upgrade i rebooted and ran mysql_upgrade as written on the main page. here's what I got:
mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock'
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
I myself do not use mysql. It's installed as kde4 dependancy. Do i need to run mysql_upgrade?
Last edited by off220 (2011-02-07 17:04:48)csergec,
here it is:
# MySQL config file for medium systems.
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
skip-networking
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
# To configure this host as a replication slave, you can choose between
# two methods :
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
# the syntax is:
# CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
# MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
# where you replace <host>, <user>, <password> by quoted strings and
# <port> by the master's port number (3306 by default).
# Example:
# CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
# MASTER_USER='joe', MASTER_PASSWORD='secret';
# OR
# 2) Set the variables below. However, in case you choose this method, then
# start replication for the first time (even unsuccessfully, for example
# if you mistyped the password in master-password and the slave fails to
# connect), the slave will create a master.info file, and any later
# change in this file to the variables' values below will be ignored and
# overridden by the content of the master.info file, unless you shutdown
# the slave server, delete master.info and restart the slaver server.
# For that reason, you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id = 2
# The replication master for this slave - required
#master-host = <hostname>
# The username the slave will use for authentication when connecting
# to the master - required
#master-user = <username>
# The password the slave will authenticate with when connecting to
# the master - required
#master-password = <password>
# The port the master is listening on.
# optional - defaults to 3306
#master-port = <port>
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/lib/mysql
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout -
Why mysql soen't start when i launch EASYPHP?
Could you gave me a explination to this and if my.ini is well written
sachant que my host : 127.0.0.1
port 3306
username [email protected]
password :naonetou
I give you my.ini
which ipath access is C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\binaries\mysql\my.ini
FICHIER CONFIGURATION
# IMPORTANT
# ${path} is used to specify EasyPHP installation path
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.
# The following options will be passed to all MySQL clients
[client]
password = naonetou
port = 3306
socket = "${path}/binaries/mysql/mysql.sock"
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
# The TCP/IP Port the MySQL Server will listen on
port = 3306
#Path to installation directory. All paths are usually resolved relative to this.
basedir="${path}/binaries/mysql/"
#Path to the database root
datadir="${path}/binaries/mysql/data/"
# The default storage engine that will be used when create new tables when
default-storage-engine = INNODB
bind-address = 127.0.0.1
socket = "${path}/binaries/mysql/mysql.sock"
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#skip-networking
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
# To configure this host as a replication slave, you can choose between
# two methods :
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
# the syntax is:
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=3306,
MASTER_USER='[email protected]', MASTER_PASSWORD='naonetou';
# where you replace <host>, <user>, <password> by quoted strings and
# <port> by the master's port number (3306 by default).
# Example:
# CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
# MASTER_USER='joe', MASTER_PASSWORD='secret';
# OR
# 2) Set the variables below. However, in case you choose this method, then
# start replication for the first time (even unsuccessfully, for example
# if you mistyped the password in master-password and the slave fails to
# connect), the slave will create a master.info file, and any later
# change in this file to the variables' values below will be ignored and
# overridden by the content of the master.info file, unless you shutdown
# the slave server, delete master.info and restart the slaver server.
# For that reason, you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id = 2
# The replication master for this slave - required
#master-host = <hostname>
# The username the slave will use for authentication when connecting
# to the master - required
#master-user = <username>
# The password the slave will authenticate with when connecting to
# the master - required
#master-password = <password>
# The port the master is listening on.
# optional - defaults to 3306
#master-port = <port>
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = C:\\mysql\\data\\
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = C:\\mysql\\data\\
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 5M
innodb_log_buffer_size = 1M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#skip-networking
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
# To configure this host as a replication slave, you can choose between
# two methods :
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
# the syntax is:
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=3306,
MASTER_USER='[email protected]', MASTER_PASSWORD='naonetou';
# where you replace <host>, <user>, <password> by quoted strings and
# <port> by the master's port number (3306 by default).
# Example:
# CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
# MASTER_USER='joe', MASTER_PASSWORD='secret';
# OR
# 2) Set the variables below. However, in case you choose this method, then
# start replication for the first time (even unsuccessfully, for example
# if you mistyped the password in master-password and the slave fails to
# connect), the slave will create a master.info file, and any later
# change in this file to the variables' values below will be ignored and
# overridden by the content of the master.info file, unless you shutdown
# the slave server, delete master.info and restart the slaver server.
# For that reason, you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id = 2
# The replication master for this slave - required
#master-host = <hostname>
# The username the slave will use for authentication when connecting
# to the master - required
#master-user = <username>
# The password the slave will authenticate with when connecting to
# the master - required
#master-password = <password>
# The port the master is listening on.
# optional - defaults to 3306
#master-port = <port>
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = C:\\mysql\\data\\
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = C:\\mysql\\data\\
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 5M
innodb_log_buffer_size = 1M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
thanksI get the same problem since I moved to Tomcat 4.1.18.
The difference is that when I look at a jnlp, I get
Date: Tue, 18 Mar 2003 10:58:25 GMT
Server: Apache/1.3.26 (Unix) mod_jk/1.2.0 mod_ssl/2.8.10 OpenSSL/0.9.6b PHP/4.2.3 FrontPage/5.0.2.2510
Content-Length: 1355
Content-Type: application/x-java-jnlp-file
Last-Modified: Mon, 17 Mar 2003 15:58:46 GMT
Client-Date: Tue, 18 Mar 2003 10:58:25 GMT
Client-Peer: 192.197.110.222:80
and at a jsp:
Date: Tue, 18 Mar 2003 11:06:10 GMT
Server: Apache/1.3.26 (Unix) mod_jk/1.2.0 mod_ssl/2.8.10 OpenSSL/0.9.6b PHP/4.2.3 FrontPage/5.0.2.2510
Content-Type: application/x-java-jnlp-file;charset=ISO-8859-1
Client-Date: Tue, 18 Mar 2003 11:06:10 GMT
Client-Peer: 192.197.110.222:80
Set-Cookie: JSESSIONID=026BF3209EC094A4045F1D37C2A0E98B;Path=/
Could the difference be ;charset=ISO-8859-1
How to remove that, in my jsp I just have :
<% response.setContentType("application/x-java-jnlp-file"); %>
Help
Benoit -
How do I allow access of my mysql server to !localhost?
I just did an nmap of an arch box running mysql, but port 3306 isn't open. mysql is certainly running and local processes have no problem accessing it.
There are no entries in rc.allow or rc.deny, and I'm not running iptables./etc/my.conf
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
skip-networking -
I want to know about the portability of vi's. If I write a vi for a
LabView 6.1 for windows platform, can I run the same vi in the same
manner under LabView 6.1 for the Linux platform? (Assuming the same
hardware and such). The specific case I am thinking of is a computer
that dual-boots linux and win2k, and runs LabView under both, so the
hardware will be exactly identical.
My general question is, are LabView .VIs portable across different
platforms and architectures?
Thank you in advance,Yes, but there are a few considerations.
(1) The first one that is likely to affect you is file paths. Never use strings to store file paths, as constants. The path separator ("\", "/", ":") is platform dependant. If you use a path data type to store your paths, as constants, then LabVIEW will automatically convert the path separators when it recompiles the application for the new target platform. If you store them as string constants, LabVIEW wont convert them.
(2) If you call shared libraries you need to make sure that you have a .so file in Linux, a .dll file for windows, and a .shlb file for Mac. The call library function will load whichever one it finds if you use a "*" character as the file extension when specifying the library path in your
Call Library Function node. For example, "MySharedLibrary.*".
(3) Don't use ActiveX; it isn't available on Mac, or Linux. LabVIEW's 3D Graph is an ActiveX Control, and won't work outside of Windows. Also, there are some LabVIEW add-on Toolkits, like the Database Connectivity Toolkit, that are windows only because they use ActiveX.
(4) Linux (and Solaris) has Pipes VI, windows doesn't
(5) Only windows has Windows Registry VIs
(6) If you use the Dialog Controls in your application, their appearance will change depending on the platform.
(7) Font problems are notorious, things resize and don�t display right, always. There are several methods of working around this problem, by choosing proper fonts, but none of them are perfect.
(8) You stated that they have the same �hardware and such�. NI doesn�t provide drivers for most of their hardware in platforms other than Windows. Even if drivers exist for Linux, most likely you will need to call different VIs in LabVIEW, t
han you will in Windows.
I am sure that there are a few more issues that I missed, but someone else will post them, no doubt.
Good luck and happy cross-platform wireworking,
-Jim
Maybe you are looking for
-
Unable to print from HP Deskjet 1510
Scan and photocopy are working fine.HP print and scan doctor shows everthing is fine but I am unable to print test document.
-
How to use Notes in Mail?
.. e.g. 1. Where are Notes saved on a MacBook after File > New Note ... write note ... File > Save? 2. Can you write a Note in OS X Lion Mail / MacBook, and end up with it in Notes on an iPad/iPhone? The above covers it, the rest is a rant. First, wh
-
Printing Checks from Oracle r12
I'm not too sure on where I should have put this post because I really don't know anything about Oracle. In my company I handle Server and PC maintenance mainly. The only thing I do with Oracle is I have to run a report every morning. The people in t
-
Hi all, RSA1 t-code top displaying Data warehouse workbench and System component version is SAP NetWeaver 2004s, but all objects developed in 3.5 data flow. My doubt now i going to install BI Statistics whether i have to install below IC als
-
Signatures Missing in Pulldown. Me or Bug?
Sorry to post this twice, but I never got a response and can't find a solution myself. I am adding signatures via Mail > Prefs > Signatures But they are not showing in the pulldown when I create a new email to send. What am I doing wrong? Or is this